ToggleDebugPanelContainerKeyEventListener
class ToggleDebugPanelContainerKeyEventListener(debugPanelService: DebugPanelServiceApi) : ViewCompat.OnUnhandledKeyEventListenerCompat
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.