public interface

TileProto.TileOrBuilder

 androidx.wear.tiles.proto.TileProto.TileOrBuilder

Subclasses:

TileProto.Tile, TileProto.Tile.Builder

Summary

Methods
public longgetFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) this tile
 can be considered to be "fresh".

public java.lang.StringgetResourcesVersion()

 The resource version required for these tiles.

public com.google.protobuf.ByteStringgetResourcesVersionBytes()

 The resource version required for these tiles.

public VersionProto.VersionInfogetSchemaVersion()

 The schema version that this tile was built with.

public StateProto.StategetState()

 State for this tile.

public longgetStateFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) the state
 for this tile can be considered to be fresh.

public TimelineProto.TimelinegetTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.

public booleanhasSchemaVersion()

 The schema version that this tile was built with.

public booleanhasState()

 State for this tile.

public booleanhasTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.

Methods

public java.lang.String getResourcesVersion()

 The resource version required for these tiles. This can be any
 developer-defined string; it is only used to cache resources, and is passed
 in ResourcesRequest if the system does not have a copy of the specified
 resource version.
 
string resources_version = 1;

Returns:

The resourcesVersion.

public com.google.protobuf.ByteString getResourcesVersionBytes()

 The resource version required for these tiles. This can be any
 developer-defined string; it is only used to cache resources, and is passed
 in ResourcesRequest if the system does not have a copy of the specified
 resource version.
 
string resources_version = 1;

Returns:

The bytes for resourcesVersion.

public boolean hasTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.
 
.androidx.wear.protolayout.proto.Timeline tile_timeline = 2;

Returns:

Whether the tileTimeline field is set.

public TimelineProto.Timeline getTileTimeline()

 The Timeline containing the layouts for the tiles to show in the carousel,
 along with their validity periods.
 
.androidx.wear.protolayout.proto.Timeline tile_timeline = 2;

Returns:

The tileTimeline.

public boolean hasSchemaVersion()

 The schema version that this tile was built with.
 
.androidx.wear.protolayout.expression.proto.VersionInfo schema_version = 3;

Returns:

Whether the schemaVersion field is set.

public VersionProto.VersionInfo getSchemaVersion()

 The schema version that this tile was built with.
 
.androidx.wear.protolayout.expression.proto.VersionInfo schema_version = 3;

Returns:

The schemaVersion.

public long getFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) this tile
 can be considered to be "fresh". The platform will attempt to refresh
 your tile at some point in the future after this interval has lapsed. A
 value of 0 here signifies that auto-refreshes should not be used (i.e. you
 will manually request updates via TileService#getRequester).

 This mechanism should not be used to update your tile more frequently than
 once a minute, and the system may throttle your updates if you request
 updates faster than this interval. This interval is also inexact; the
 system will generally update your tile if it is on-screen, or about to be
 on-screen, although this is not guaranteed due to system-level
 optimizations.
 
uint64 freshness_interval_millis = 4;

Returns:

The freshnessIntervalMillis.

public boolean hasState()

 State for this tile.
 
.androidx.wear.protolayout.proto.State state = 5;

Returns:

Whether the state field is set.

public StateProto.State getState()

 State for this tile.
 
.androidx.wear.protolayout.proto.State state = 5;

Returns:

The state.

public long getStateFreshnessIntervalMillis()

 How many milliseconds of elapsed time (**not** wall clock time) the state
 for this tile can be considered to be fresh. The platform will attempt to
 fetch new state at some point in the future after this interval has lapsed.
 A value of 0 here signifies that auto-refreshes should not be used.
 
uint64 state_freshness_interval_millis = 6;

Returns:

The stateFreshnessIntervalMillis.