RequestBuilders.TileRequest.Builder


class RequestBuilders.TileRequest.Builder


Builder for TileRequest

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 0)
Builder()

Creates an instance of Builder.

Public functions

RequestBuilders.TileRequest

Builds an instance from accumulated values.

RequestBuilders.TileRequest.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setCurrentState(currentState: StateBuilders.State)

Sets the androidx.wear.protolayout.StateBuilders.State that should be used when building the tile.

RequestBuilders.TileRequest.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setDeviceConfiguration(
    deviceConfiguration: DeviceParametersBuilders.DeviceParameters
)

Sets the androidx.wear.protolayout.DeviceParametersBuilders.DeviceParameters object describing the device requesting the tile update.

RequestBuilders.TileRequest.Builder

This function is deprecated.

Use ( instead.

RequestBuilders.TileRequest.Builder

This function is deprecated.

Use ( instead.

RequestBuilders.TileRequest.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setTileId(tileId: Int)

Sets the ID of the tile being requested.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
Builder()

Creates an instance of Builder.

Public functions

build

Added in 1.0.0
fun build(): RequestBuilders.TileRequest

Builds an instance from accumulated values.

setCurrentState

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setCurrentState(currentState: StateBuilders.State): RequestBuilders.TileRequest.Builder

Sets the androidx.wear.protolayout.StateBuilders.State that should be used when building the tile.

setDeviceConfiguration

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setDeviceConfiguration(
    deviceConfiguration: DeviceParametersBuilders.DeviceParameters
): RequestBuilders.TileRequest.Builder

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

setDeviceParameters

Added in 1.0.0
Deprecated in 1.2.0
fun setDeviceParameters(
    deviceParameters: DeviceParametersBuilders.DeviceParameters
): RequestBuilders.TileRequest.Builder

Sets the androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters describing the device requesting the tile update.

setState

Added in 1.0.0
Deprecated in 1.2.0
fun setState(state: StateBuilders.State): RequestBuilders.TileRequest.Builder

Sets the androidx.wear.tiles.StateBuilders.State that should be used when building the tile.

setTileId

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 0)
fun setTileId(tileId: Int): RequestBuilders.TileRequest.Builder

Sets the ID of the tile being requested.