MdocNfcDataTransferService

open class MdocNfcDataTransferService(applicationContext: Context, sendResponse: (ByteArray) -> Unit) : NfcApduService

Base class for implementing NFC data transfer according to ISO/IEC 18013-5:2021.

Applications should subclass this and include the appropriate stanzas in its manifest for binding to the mdoc NFC data transfer AID (A0000002480400).

Constructors

Link copied to clipboard
constructor(applicationContext: Context, sendResponse: (ByteArray) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onCreate()

Called when CombinedNfcService is created by the OS.

Link copied to clipboard
open override fun onDeactivated(reason: Int)

Called when the service is deactivated.

Link copied to clipboard
open override fun onDestroy()

Called when CombinedNfcService is destroyed by the OS.

Link copied to clipboard
open override fun processCommandApdu(commandApdu: ByteArray, extras: Bundle?): ByteArray?

Called when APDUs arrive