public final class

StateBuilders.State

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.StateBuilders.State

Overview

StateBuilders.State information.

Summary

Methods
public static StateBuilders.StatefromProto(StateProto.State proto)

Creates a new wrapper instance from the proto.

public static StateBuilders.StatefromProto(StateProto.State proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public java.util.Map<AppDataKey, DynamicDataBuilders.DynamicDataValue>getKeyToValueMapping()

Gets any shared state between the provider and renderer.

public java.lang.StringgetLastClickableId()

Gets the ID of the clickable that was last clicked.

public static intgetMaxStateEntryCount()

Returns the maximum number for state entries that can be added to the StateBuilders.State using StateBuilders.State.Builder.

public StateProto.StatetoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public static int getMaxStateEntryCount()

Returns the maximum number for state entries that can be added to the StateBuilders.State using StateBuilders.State.Builder.

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.

public java.lang.String getLastClickableId()

Gets the ID of the clickable that was last clicked.

public java.util.Map<AppDataKey, DynamicDataBuilders.DynamicDataValue> getKeyToValueMapping()

Gets any shared state between the provider and renderer.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static StateBuilders.State fromProto(StateProto.State proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public static StateBuilders.State fromProto(StateProto.State proto)

Creates a new wrapper instance from the proto. Intended for testing purposes only. An object created using this method can't be added to any other wrapper.

public StateProto.State toProto()

Returns the internal proto instance.

public java.lang.String toString()