RequestBuilders.TileRequest.Builder


public final class RequestBuilders.TileRequest.Builder


Builder for TileRequest

Summary

Public constructors

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

Creates an instance of Builder.

Public methods

@NonNull RequestBuilders.TileRequest

Builds an instance from accumulated values.

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

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

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

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

@NonNull RequestBuilders.TileRequest.Builder

This method is deprecated.

Use ( instead.

@NonNull RequestBuilders.TileRequest.Builder

This method is deprecated.

Use ( instead.

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

Sets the ID of the tile being requested.

Public constructors

Builder

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

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull RequestBuilders.TileRequest build()

Builds an instance from accumulated values.

setCurrentState

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

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)
public @NonNull RequestBuilders.TileRequest.Builder setDeviceConfiguration(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceConfiguration
)

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
public @NonNull RequestBuilders.TileRequest.Builder setDeviceParameters(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

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
public @NonNull RequestBuilders.TileRequest.Builder setState(@NonNull StateBuilders.State state)

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)
public @NonNull RequestBuilders.TileRequest.Builder setTileId(int tileId)

Sets the ID of the tile being requested.