PolicyProvider

constructor(compareItemsPolicy: MediaItemComparisonPolicy = DefaultMediaItemComparisonPolicy(), itemMappingPolicy: MediaItemMappingPolicy = DefaultMediaItemMappingPolicy(), sourceAttributionPolicy: MediaSourceAttributionPolicy = DefaultMediaSourceAttributionPolicy(), mediaControlPolicy: MediaControlPolicy = DefaultMediaControlPolicy(), collectionPolicy: CollectionPolicy = DefaultCollectionPolicy(), userFlowPolicy: UserFlowPolicy = UserFlowPolicy(), sourceDefinitionPolicy: SourceDefinitionPolicy = DefaultSourceDefinitionPolicy())

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.

collectionPolicy

The policy that determines if the media item represents a collection and allows managing actions on a collection.

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.