Panels

interface Panels

Interface to open Frontend sub-panels.

Functions

Link copied to clipboard
abstract fun backToDashboard()

Clears stack of MediaTaskPanels except for the dashboard panel.

Link copied to clipboard
abstract fun openActivityPanel(pendingIntent: PendingIntent, onFinishedCallback: () -> Unit? = null)

Launches an Activity in a Panel using the pendingIntent. onFinishedCallback is called either when the Activity finishes itself or when the panel is dismissed for some other reason.

Link copied to clipboard
abstract fun openExpandedNowPlayingPanel(transitionSource: PanelTransitionSource? = null)

Open the now playing task panel and restore the previous panel stack.

Link copied to clipboard
abstract fun openMediaTaskPanel(panel: MediaTaskPanel)

Adds panel to the Frontend. The frontend adds panel to the current panel stack.