public final class

RequestBuilders.TileRequest

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.RequestBuilders.TileRequest

Overview

Parameters passed to a TileBuilders.Tile Service when the renderer is requesting a new version of the tile.

Summary

Methods
public static RequestBuilders.TileRequestfromProto(RequestProto.TileRequest proto)

Creates a new wrapper instance from the proto.

public StateBuilders.StategetCurrentState()

Gets the StateBuilders.State that should be used when building the tile.

public DeviceParametersBuilders.DeviceParametersgetDeviceConfiguration()

Gets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the tile update.

public DeviceParametersBuilders.DeviceParametersgetDeviceParameters()

Gets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the tile update.

public StateBuilders.StategetState()

Gets the StateBuilders.State that should be used when building the tile.

public intgetTileId()

Gets the instance ID of the tile being requested, allocated when the tile instance is added to the carousel.

public RequestProto.TileRequesttoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public DeviceParametersBuilders.DeviceParameters getDeviceConfiguration()

Gets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the tile update. If not set, a default empty instance is used.

public StateBuilders.State getCurrentState()

Gets the StateBuilders.State that should be used when building the tile.

public int getTileId()

Gets the instance ID of the tile being requested, allocated when the tile instance is added to the carousel. This ID will remain the same for this tile instance as long it is not removed from the carousel.

public DeviceParametersBuilders.DeviceParameters getDeviceParameters()

Deprecated: Use RequestBuilders.TileRequest.getDeviceConfiguration() instead.

Gets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the tile update.

public StateBuilders.State getState()

Deprecated: Use RequestBuilders.TileRequest.getCurrentState() instead.

Gets the StateBuilders.State that should be used when building the tile.

Creates a new wrapper instance from the proto.

public RequestProto.TileRequest toProto()

Returns the internal proto instance.

public java.lang.String toString()