DebugPanelService

interface DebugPanelService

A service for managing the state for the debug panel in the system UI.

This implementation facilitates system UI designs containing a debug panel that can be toggled on or off, allowing developers to access them through a hidden mechanism without changing the reference experience for other users.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val canToggleDebugPanel: Boolean

Whether the debug panel can be toggled through toggleDebugPanel.

Link copied to clipboard
abstract val shouldShowDebugPanel: Boolean

Whether the debug panel, if available, should be shown. This can be changed using showDebugPanel or toggleDebugPanel.

Functions

Link copied to clipboard
abstract suspend fun allowTogglingDebugPanel(isAllowed: Boolean)

Whether the debug panel is allowed be toggled through toggleDebugPanel.

Link copied to clipboard
abstract suspend fun showDebugPanel(shouldBeShown: Boolean)

Sets whether the debug panel should be shown.

Link copied to clipboard
abstract suspend fun toggleDebugPanel()

Toggles the visibility of the debug panel.