StateBuilders.State
@RequiresSchemaVersion(major = 1, minor = 0)
public final class StateBuilders.State
State information.
Summary
Nested types |
|---|
public final class StateBuilders.State.BuilderBuilder for |
Public methods |
|
|---|---|
@NonNull Map<AppDataKey<Object>, DynamicDataBuilders.DynamicDataValue<Object>> |
Gets any shared state between the provider and renderer. |
@NonNull String |
Gets the ID of the clickable that was last clicked. |
static int |
Returns the maximum number for state entries that can be added to the |
@NonNull DynamicDataMap |
Gets any shared state between the provider and renderer. |
@NonNull String |
toString() |
Public methods
getKeyToValueMapping
public @NonNull Map<AppDataKey<Object>, DynamicDataBuilders.DynamicDataValue<Object>> getKeyToValueMapping()
Gets any shared state between the provider and renderer.
getLastClickableId
public @NonNull String getLastClickableId()
Gets the ID of the clickable that was last clicked.
getMaxStateEntryCount
public static int getMaxStateEntryCount()
Returns the maximum number for state entries that can be added to the State using addKeyToValueMapping.
The ProtoLayout state model is not designed to handle large volumes of layout provided state. So we limit the number of state entries to keep the on-the-wire size and state store update times manageable.
getStateMap
public @NonNull DynamicDataMap getStateMap()
Gets any shared state between the provider and renderer. This method returns the same underlying data as getKeyToValueMapping.