public final class

ResourceBuilders.Resources

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.ResourceBuilders.Resources

Overview

The resources for a layout.

Summary

Methods
public static ResourceBuilders.ResourcesfromProto(ResourceProto.Resources proto)

public java.util.Map<java.lang.String, ResourceBuilders.ImageResource>getIdToImageMapping()

Gets a map of resource_ids to images, which can be used by layouts.

public java.lang.StringgetVersion()

Gets the version of this ResourceBuilders.Resources instance.

public ResourceProto.ResourcestoProto()

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

Methods

public java.lang.String getVersion()

Gets the version of this ResourceBuilders.Resources instance.

Each tile specifies the version of resources it requires. After fetching a tile, the renderer will use the resources version specified by the tile to separately fetch the resources.

This value must match the version of the resources required by the tile for the tile to render successfully, and must match the resource version specified in RequestBuilders.ResourcesRequest which triggered this request. Intended for testing purposes only.

public java.util.Map<java.lang.String, ResourceBuilders.ImageResource> getIdToImageMapping()

Gets a map of resource_ids to images, which can be used by layouts. Intended for testing purposes only.

public static ResourceBuilders.Resources fromProto(ResourceProto.Resources proto)

public ResourceProto.Resources toProto()