[Android ] RFIDReaderAppeared event not detect

K Komuro Yoshitaka 3 years 5 months ago
23 0 0

I develop RFID Reader App for Android, and have created following code
```:kotlin
class RFIDHandler(context: Context) : Readers.RFIDReaderEventHandler {
private val readers = Readers(context, ENUM_TRANSPORT.BLUETOOTH)
init {
Readers.attach(this)
}
override fun RFIDReaderAppeared(device: ReaderDevice?) {
// my processing here
}
override fun RFIDReaderDisappeared(device: ReaderDevice?) {
// TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
```
According to API Reference, I can subscribe reader appear event through Readers.attach(Readers.RFIDReaderEventHandler).
But I can not subscribe.
Is there something wrong with above code?

CONTACT
Can’t find what you’re looking for?