BrowseSourceUserFlow

@IviExperimental(reasons = [])
fun interface BrowseSourceUserFlow

A user flow performed when the user requests to browse a media source.

This user flow can be used, for example, to open a custom MediaTaskPanel.

Example

class CustomBrowseSourceUserFlow : BrowseSourceUserFlow {
override suspend fun perform(
mediaFrontendContext: MediaFrontendContext,
sourceId: SourceId
): UserFlowResult {
mediaFrontendContext.mediaFrontendNavigation.openMediaTaskPanel(
CustomMediaTaskPanel(mediaFrontendContext, sourceId)
)
return UserFlowResult.Success
}
}

Functions

Link copied to clipboard
abstract suspend fun perform(mediaFrontendContext: MediaFrontendContext, sourceId: SourceId): UserFlowResult

Performs a browse source user flow.