produceRequestedResources
override fun produceRequestedResources(resourceState: R, requestParams: RequestBuilders.ResourcesRequest): ResourceBuilders.Resources
Produce resources for the given request. The implementation should read androidx.wear.tiles.RequestBuilders.ResourcesRequest.getResourceIds and if not empty only return the requested resources.
Parameters
resourceState
the state of the resources, typically a data class containing loaded bitmaps.
requestParams
the incoming request params.
open fun ResourceBuilders.Resources.Builder.produceRequestedResources(resourceState: R, deviceParameters: DeviceParametersBuilders.DeviceParameters, resourceIds: List<String>)
Add resources directly to the builder.