addUsbReader

suspend fun addUsbReader(displayName: String, vendorId: Int, productId: Int, interfaceIndex: Int): ExternalNfcReaderUsb

Adds a new external NFC reader connected via USB.

On Android, the ExternalNfcReaderStore.handleUsbDeviceAttached extension method can be used to automatically configuring supported devices when they are plugged in.

Return

a ExternalNfcReaderUsb for the added device.

Parameters

displayName

a human-readable name for the device.

vendorId

the vendor ID of the USB device.

productId

the product ID of the USB device.

interfaceIndex

the USB interface index for the CCID interface on the device.