Panels

interface Panels

Interface to open Frontend sub-panels.

Functions

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, clearStack: Boolean)

Adds panel to the Frontend. If clearStack is true, panel will open as a root panel and the panel stack is cleared; otherwise the frontend adds panel to the current panel stack.