SearchSourceClient
SourceClient specialization oriented towards searching.
Call search, and retrieve the updated contents as soon as isLoading is false
.
Parameters
context
Android context.
sourceId
ID of the source to connect to.
Properties
Link copied to clipboard
The list of IviMediaItem results obtained by searching for query. Initially empty. The contents will be updated over time if the source decides to do so.
Link copied to clipboard
Whether the source can be queried and provide content.
Link copied to clipboard
Collect mediaErrors to receive notifications about error conditions.
Link copied to clipboard
The client root extras. Can be used to store various values to determine source behavior.
Functions
Link copied to clipboard
open suspend override fun <T> coLaunchBrowserAction(browserAction: BrowserAction<T>): BrowserActionResult<T>
Launch a browser action.
Link copied to clipboard
Connects client to a media source to display the content. The connection is kept until disconnect is called.
Link copied to clipboard
Disconnects client from a media source and clears the content.