ResourceBuilders.Resources
class ResourceBuilders.Resources
The resources for a layout.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
java-static ResourceBuilders.Resources? |
@TilesExperimentalConverts from byte array representation. |
(Mutable)Map<String!, ResourceBuilders.ImageResource!> |
Gets a map of resource_ids to images, which can be used by layouts. |
String |
Gets the version of this |
ByteArray<Byte> |
Converts to byte array representation. |
Public functions
@TilesExperimental
java-static funfromByteArray(byteArray: ByteArray): ResourceBuilders.Resources?
Converts from byte array representation.
fungetIdToImageMapping(): (Mutable)Map<String!, ResourceBuilders.ImageResource!>
Gets a map of resource_ids to images, which can be used by layouts. Intended for testing purposes only.
fungetVersion(): String
Gets the version of this 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 androidx.wear.tiles.RequestBuilders.ResourcesRequest which triggered this request. Intended for testing purposes only.