BrowseSourceUserFlow

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.panels.openMediaTaskPanel(
CustomMediaTaskPanel(mediaFrontendContext, sourceId),
clearStack = false
)
return UserFlowResult.Success
}
}

Functions

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

Performs a browse source user flow.