interface TapController
Controller for magneto and NFC "tap" actions.
abstract fun processNfcIntent(intent: Intent): Unit
For NFC enabled openings pass an NfcAdapter.ACTION_NDEF_DISCOVERED here. The corresponding unit (if any) will be returned via TapEventListener.onTapEvent If there's ongoing opening started by OnTap calling this will help identify the unit. |
|
abstract fun registerTapEventListener(listener: TapEventListener): Unit
Register a TapEventListener to receive tap events |
|
abstract fun unregisterTapEventListener(listener: TapEventListener): Unit
Unregister a TapEventListener to stop receiving tap events |