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
}
}
Content copied to clipboard
Functions
Link copied to clipboard
abstract suspend fun perform(mediaFrontendContext: MediaFrontendContext, sourceId: SourceId): UserFlowResult
Content copied to clipboard
Performs a browse source user flow.