ResourceBuilders.Resources
@RequiresSchemaVersion(major = 1, minor = 0)
class ResourceBuilders.Resources
The resources for a layout.
Summary
Nested types |
|---|
|
Builder for |
Public functions |
|
|---|---|
(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 |
String |
toString() |
Public functions
getIdToImageMapping
fun getIdToImageMapping(): (Mutable)Map<String!, ResourceBuilders.ImageResource!>
Gets a map of resource_ids to images, which can be used by layouts.
getVersion
fun getVersion(): String
Gets the version of this Resources instance.
Each layout specifies the version of resources it requires. After fetching a layout, the renderer will use the resources version specified by the layout to separately fetch the resources.
This value must match the version of the resources required by the layout for the layout to render successfully, and must match the resource version specified in ResourcesRequest which triggered this request.