Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Interface adapter update

A decision block that update an adapter UI elements’ number of items and/or invalidate its items in a custom interface.

The fiber will pause until the adapter has been updated, or the interface was dismissed.

The NO path is executed if the interface has been dismissed.

The Interface item request block will proceed for each item as it’s displayed by the adapter UI element.

The number of items specified don’t persist when an interface is recreated, nor device reboot. Leave the input item count empty and invalidate unchecked to read the current number of items that can be displayed. Home screen widgets on Android 15+ may hold all of their item layouts in memory, those should therefore keep their item count low, maybe using paging to do so.

This block don’t accept an interface URI for the custom layouts in a notification since they don’t support adapter UI elements.

Note! This is an experimental feature, expect breaking changes. Not for production use.

Input arguments

  • Interface URIURI of the interface to update.
  • Adapter UI element id — identifier name of the adapter view in the interface layout.
  • Item count — number of items, default is to not update.
  • Invalidate — whether to invalidate the currently visible items, default it no.

Output variables

  • Item count — variable to assign the number of items in the adapter, before update if item count was specified.
Note! This documentation is also accessible within the app from Help & feedback menu.