StateBuilders.State
@RequiresSchemaVersion(major = 1, minor = 0)
class StateBuilders.State
State information.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
(Mutable)Map<AppDataKey<Any!>!, DynamicDataBuilders.DynamicDataValue<Any!>!> |
Gets any shared state between the provider and renderer. |
String |
Gets the ID of the clickable that was last clicked. |
java-static Int |
Returns the maximum number for state entries that can be added to the |
DynamicDataMap |
Gets any shared state between the provider and renderer. |
String |
toString() |
Public functions
getKeyToValueMapping
fun getKeyToValueMapping(): (Mutable)Map<AppDataKey<Any!>!, DynamicDataBuilders.DynamicDataValue<Any!>!>
Gets any shared state between the provider and renderer.
getLastClickableId
fun getLastClickableId(): String
Gets the ID of the clickable that was last clicked.
getMaxStateEntryCount
java-static fun getMaxStateEntryCount(): Int
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
fun getStateMap(): DynamicDataMap
Gets any shared state between the provider and renderer. This method returns the same underlying data as getKeyToValueMapping.