Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-07 07:02:28 +03:00
parent 35ea095482
commit e16fe69575

View file

@ -1,29 +0,0 @@
package com.tangem.tap.features.intentHandler
import android.content.Intent
/**
[REDACTED_AUTHOR]
*/
class MainIntentHandler {
private val intentHandlers = mutableListOf<IntentHandler>()
fun addHandler(handler: IntentHandler) {
intentHandlers.add(handler)
}
fun removeIntentHandler(handler: IntentHandler) {
intentHandlers.remove(handler)
}
fun removeAll() {
intentHandlers.clear()
}
suspend fun handleIntent(intent: Intent?) {
intentHandlers.toList().forEach {
it.handleIntent(intent)
}
}
}