public final class

TileBuilders.Tile.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.builders.TileBuilders.Tile.Builder

Overview

Builder for TileBuilders.Tile

Summary

Methods
public TileBuilders.Tilebuild()

Builds an instance from accumulated values.

public TileBuilders.Tile.BuildersetFreshnessIntervalMillis(long freshnessIntervalMillis)

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

public TileBuilders.Tile.BuildersetResourcesVersion(java.lang.String resourcesVersion)

Sets the resource version required for these tiles.

public TileBuilders.Tile.BuildersetTimeline(TimelineBuilders.Timeline.Builder timelineBuilder)

Sets the tiles to show in the carousel, along with their validity periods.

public TileBuilders.Tile.BuildersetTimeline(TimelineBuilders.Timeline timeline)

Sets the tiles to show in the carousel, along with their validity periods.

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

Methods

public TileBuilders.Tile.Builder setResourcesVersion(java.lang.String resourcesVersion)

Sets the resource version required for these tiles.

Sets the tiles to show in the carousel, along with their validity periods.

Sets the tiles to show in the carousel, along with their validity periods.

public TileBuilders.Tile.Builder setFreshnessIntervalMillis(long freshnessIntervalMillis)

Sets 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 TileProviderService#getRequester).

public TileBuilders.Tile build()

Builds an instance from accumulated values.