MediaCollectionsTileRenderer
class MediaCollectionsTileRenderer(context: Context, materialTheme: Colors, debugResourceMode: Boolean) : SingleTileLayoutRenderer<MediaCollectionsTileRenderer.MediaCollectionsState, MediaCollectionsTileRenderer.ResourceState>
A tile template showing two media collections and a primary chip that links to playlists.
Types
Link copied to clipboard
data class MediaCollection(val name: String, val artworkId: String, val action: ActionBuilders.Action)
Link copied to clipboard
data class MediaCollectionsState(@StringRes val chipName: Int, val chipAction: ActionBuilders.Action, val collection1: MediaCollectionsTileRenderer.MediaCollection, val collection2: MediaCollectionsTileRenderer.MediaCollection)
Link copied to clipboard
data class ResourceState(@DrawableRes val appIcon: Int, val images: Map<String, ResourceBuilders.ImageResource?>)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun getResourcesVersionForTileState(state: MediaCollectionsTileRenderer.MediaCollectionsState): String
Link copied to clipboard
open override fun ResourceBuilders.Resources.Builder.produceRequestedResources(resourceState: MediaCollectionsTileRenderer.ResourceState, deviceParameters: DeviceParametersBuilders.DeviceParameters, resourceIds: List<String>)
override fun produceRequestedResources(resourceState: MediaCollectionsTileRenderer.ResourceState, requestParams: RequestBuilders.ResourcesRequest): ResourceBuilders.Resources
Link copied to clipboard
open override fun renderTile(state: MediaCollectionsTileRenderer.MediaCollectionsState, deviceParameters: DeviceParametersBuilders.DeviceParameters): LayoutElementBuilders.LayoutElement
Link copied to clipboard
override fun renderTimeline(state: MediaCollectionsTileRenderer.MediaCollectionsState, requestParams: RequestBuilders.TileRequest): TileBuilders.Tile