ExternalNfcReaderUsb

data class ExternalNfcReaderUsb(val id: String, val addedAt: Instant, val displayName: String, val vendorId: Int, val productId: Int) : ExternalNfcReader

An external NFC reader connected via USB.

Constructors

Link copied to clipboard
constructor(id: String, addedAt: Instant, displayName: String, vendorId: Int, productId: Int)

Properties

Link copied to clipboard
open override val addedAt: Instant

the point in time the reader was added

Link copied to clipboard
open override val displayName: String

a human-readable name for the reader.

Link copied to clipboard
open override val id: String

an identifier for the reader.

Link copied to clipboard

the USB product ID for the reader.

Link copied to clipboard

the USB vendor ID for the reader.

Functions

Link copied to clipboard
open suspend override fun getNfcTagReader(): NfcTagReader

Gets a NfcTagReader to perform NFC reading operations.

Link copied to clipboard
open override fun observeState(): Flow<ExternalNfcReaderState>

Starts observing the state of a reader.

Link copied to clipboard
open suspend override fun requestPermission(): Boolean

Requests the user for permission to use the device.