PolicyProvider
fun PolicyProvider( compareItemsPolicy: MediaItemComparisonPolicy = DefaultMediaItemComparisonPolicy(), itemMappingPolicy: MediaItemMappingPolicy = DefaultMediaItemMappingPolicy(), sourceAttributionPolicy: MediaSourceAttributionPolicy = DefaultMediaSourceAttributionPolicy(), mediaControlPolicy: MediaControlPolicy = DefaultMediaControlPolicy(), isPlaylistItemPolicy: IsPlaylistItemPolicy? = null, userFlowPolicy: UserFlowPolicy = UserFlowPolicy(), sourceDefinitionPolicy: SourceDefinitionPolicy = DefaultSourceDefinitionPolicy())
Content copied to clipboard
Parameters
compareItemsPolicy
A policy to compare two media items.
itemMappingPolicy
A policy to modify data in media items before displaying them.
sourceAttributionPolicy
A policy to customize source attributions, such as logos.
mediaControlPolicy
The policy that configures the available media controls.
isPlaylistItemPolicy
The policy that determines if the media item represents a playlist. Leave it null
to use the default policy.
userFlowPolicy
A policy to customize a source's user flows, such as logging in, browsing a source and accessing settings.
sourceDefinitionPolicy
A policy to define some general traits of a source.