StateBuilders.State


@RequiresSchemaVersion(major = 1, minor = 0)
public final class StateBuilders.State


State information.

Summary

Nested types

public final class StateBuilders.State.Builder

Builder for State

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 State using addKeyToValueMapping.

@NonNull String

Public methods

getKeyToValueMapping

Added in 1.0.0
public @NonNull Map<AppDataKey<Object>, DynamicDataBuilders.DynamicDataValue<Object>> getKeyToValueMapping()

Gets any shared state between the provider and renderer.

getLastClickableId

Added in 1.0.0
public @NonNull String getLastClickableId()

Gets the ID of the clickable that was last clicked.

getMaxStateEntryCount

Added in 1.0.0
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.

toString

public @NonNull String toString()