public final class

RequestBuilders.ResourcesRequest

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.RequestBuilders.ResourcesRequest

Overview

Parameters passed to a TileBuilders.Tile Service when the renderer is requesting a specific resource version.

Summary

Methods
public static RequestBuilders.ResourcesRequestfromProto(RequestProto.ResourcesRequest proto)

Creates a new wrapper instance from the proto.

public DeviceParametersBuilders.DeviceParametersgetDeviceConfiguration()

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

public DeviceParametersBuilders.DeviceParametersgetDeviceParameters()

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

public java.util.List<java.lang.String>getResourceIds()

Gets requested resource IDs.

public intgetTileId()

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

public java.lang.StringgetVersion()

Gets the version of the resources being fetched.

public RequestProto.ResourcesRequesttoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public java.lang.String getVersion()

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

public java.util.List<java.lang.String> getResourceIds()

Gets 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.

public DeviceParametersBuilders.DeviceParameters getDeviceConfiguration()

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

public int getTileId()

Gets the instance ID of the tile for which resources are 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.ResourcesRequest.getDeviceConfiguration() instead.

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

Creates a new wrapper instance from the proto.

Returns the internal proto instance.

public java.lang.String toString()