NfcScanner

interface NfcScanner

Provider of NFC scanner functionality

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun cancelScan(errorMessage: String?)

Stops scanning previously started via scan or disconnects the established session

Link copied to clipboard
abstract suspend fun isEnabled(): Boolean

Check whether NFC adapter is enabled on the device (android only, iOS always enabled)

Link copied to clipboard
abstract suspend fun isSupported(): Boolean

Check whether NFC scanning is supported on the device

Link copied to clipboard
abstract suspend fun scan(message: String?)

Starts scanning for ISO 7816-4 NFC tag

Link copied to clipboard
abstract suspend fun setMessage(message: String)

Update UI message on the system NFC scanner overlay (iOS) - previously set via scan

Link copied to clipboard
abstract suspend fun transceive(commandApdu: ByteArray): ByteArray

Send APDU request and wait for response APDU