abstract class AbstractNfcActivity : AppCompatActivity, TapEventListener
Abstract class for receiving NFC Intents.
If you wish to receive NFC Intents elsewhere you're free to do so, just make sure you always pass them to SmartWorkspaceSdk.processNfcIntent
To implement:
This implementation awaits until both:
If you're not sure what is host/scheme for your installation:
AbstractNfcActivity()
Abstract class for receiving NFC Intents. |
abstract fun getSdk(): SmartWorkspaceSdk
Provide SmartWorkspaceSdk instance here |
|
open fun onCreate(savedInstanceState: Bundle?): Unit |
|
abstract fun onNfcIntent(intent: Intent?): Unit
Delivers source NFC Intent when generating onTapEvent wasn't possible. Situations when this can happen are caused by: |
|
open fun onPause(): Unit |
|
abstract fun onTapEvent(openable: Openable): Unit
Delivers Openable when NFC event is detected. Activity will be finished immediately after this call. |