ToggleDebugPanelContainerKeyEventListener
class ToggleDebugPanelContainerKeyEventListener(debugPanelService: DebugPanelServiceApi) : ViewCompat.OnUnhandledKeyEventListenerCompat
Content copied to clipboard
A key event listener that can be added to the root view of a system UI (using ViewCompat.addOnUnhandledKeyEventListener to toggle the visibility of the system UI's DebugPanel container.
It offers two methods of toggling the debug panel:
Pressing the backtick/grave key ` on the keyboard, for emulators.
Long-pressing the 'volume down' key, for hardware without physical keyboard.
Constructors
Link copied to clipboard
fun ToggleDebugPanelContainerKeyEventListener(debugPanelService: DebugPanelServiceApi)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun onUnhandledKeyEvent(view: View, event: KeyEvent): Boolean
Content copied to clipboard