public final class

RequestBuilders.ResourcesRequest.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.RequestBuilders.ResourcesRequest.Builder

Overview

Builder for RequestBuilders.ResourcesRequest

Summary

Constructors
publicBuilder()

Creates an instance of RequestBuilders.TileRequest.Builder.

Methods
public RequestBuilders.ResourcesRequest.BuilderaddResourceId(java.lang.String resourceId)

Adds one item to requested resource IDs.

public RequestBuilders.ResourcesRequestbuild()

Builds an instance from accumulated values.

public RequestBuilders.ResourcesRequest.BuildersetDeviceConfiguration(DeviceParametersBuilders.DeviceParameters deviceConfiguration)

Sets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the resources.

public RequestBuilders.ResourcesRequest.BuildersetDeviceParameters(DeviceParametersBuilders.DeviceParameters deviceParameters)

Sets the DeviceParametersBuilders.DeviceParameters describing the device requesting the resources.

public RequestBuilders.ResourcesRequest.BuildersetTileId(int tileId)

Sets the ID of the tile for which resources are being requested.

public RequestBuilders.ResourcesRequest.BuildersetVersion(java.lang.String version)

Sets the version of the resources being fetched.

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

Constructors

public Builder()

Creates an instance of RequestBuilders.TileRequest.Builder.

Methods

public RequestBuilders.ResourcesRequest.Builder setVersion(java.lang.String version)

Sets the version of the resources being fetched. This is the same as the requested resource version, passed in TileBuilders.Tile.

public RequestBuilders.ResourcesRequest.Builder addResourceId(java.lang.String resourceId)

Adds one item to requested resource IDs. This specifies which tile resources should be returned in the ResourceBuilders.Resources response. If not specified, all resources for the given version must be provided in the response.

Note that resource IDs here correspond to tile resources (i.e. keys that would be used in ResourceBuilders.Resources.idToImage), not Android resource names or similar.

Sets the DeviceParametersBuilders.DeviceParameters object describing the device requesting the resources.

public RequestBuilders.ResourcesRequest.Builder setTileId(int tileId)

Sets the ID of the tile for which resources are being requested.

Deprecated: Use RequestBuilders.ResourcesRequest.Builder instead.

Sets the DeviceParametersBuilders.DeviceParameters describing the device requesting the resources.

Builds an instance from accumulated values.