Sensorberg Smart Spaces SDK for Android / com.sensorberg.smartworkspace.sdk / TapController

TapController

interface TapController

Controller for magneto and NFC "tap" actions.

Functions

processNfcIntent

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.

registerTapEventListener

abstract fun registerTapEventListener(listener: TapEventListener): Unit

Register a TapEventListener to receive tap events

unregisterTapEventListener

abstract fun unregisterTapEventListener(listener: TapEventListener): Unit

Unregister a TapEventListener to stop receiving tap events