Updated on 2026-08-14

This commit is contained in:
Tangem 2025-08-01 14:12:12 +03:00
parent 02f6e52f46
commit d0f1e7c6c4
9 changed files with 105 additions and 106 deletions

View file

@ -0,0 +1,13 @@
package com.tangem.features.tester.api
import android.view.KeyEvent
import androidx.lifecycle.DefaultLifecycleObserver
/**
* Interface for observing to key events in a lifecycle-aware manner.
* Implementations should handle key events and return true if the event was consumed.
*/
interface KeyEventObserver : DefaultLifecycleObserver {
fun dispatchKeyEvent(event: KeyEvent): Boolean
}

View file

@ -1,7 +1,5 @@
package com.tangem.features.tester.api
import androidx.lifecycle.DefaultLifecycleObserver
/**
* Interface for launching the tester menu
*
@ -9,6 +7,9 @@ import androidx.lifecycle.DefaultLifecycleObserver
*/
interface TesterMenuLauncher {
/** Observer for detecting shake events and launching the tester menu */
val launchOnShakeObserver: DefaultLifecycleObserver
/**
* Observer for key events to open the tester menu.
* Implementations should handle key events and return true if the event was consumed.
*/
val launchOnKeyEventObserver: KeyEventObserver
}