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)

public DeviceParametersBuilders.DeviceParametersgetDeviceParameters()

Gets parameters describing the device requesting the resources.

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

Gets requested resource IDs.

public java.lang.StringgetVersion()

Gets the version of the resources being fetched.

public RequestProto.ResourcesRequesttoProto()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 getDeviceParameters()

Gets parameters describing the device requesting the resources. Intended for testing purposes only.

public static RequestBuilders.ResourcesRequest fromProto(RequestProto.ResourcesRequest proto)

public RequestProto.ResourcesRequest toProto()