ItemSourceClient
class ItemSourceClient( sourceId: SourceId, val mediaItem: IviMediaItem, coroutineDispatcher: CoroutineDispatcher = Options.mediaCoroutineDispatcher) : SourceClient
Content copied to clipboard
A SourceClient specialization oriented towards showing the contents of a single media item.
Targets a single media item by getting its contents, and keeps them up to date.
Parameters
sourceId
ID of the source to connect to.
mediaItem
The media item to target.
coroutineDispatcher
The coroutine dispatcher to use to launch background operations. The most common are IPC requests via Binder. Defaults to the IO dispatcher.
Constructors
Link copied to clipboard
fun ItemSourceClient( sourceId: SourceId, mediaItem: IviMediaItem, coroutineDispatcher: CoroutineDispatcher = Options.mediaCoroutineDispatcher)
Content copied to clipboard
Properties
Link copied to clipboard
The list of IviMediaItems contained in the subscribed mediaItem. Initially empty. The contents will be updated over time, when the source decides to do so.