Nfc Scanner
Defined in package com.scandit.datacapture.id.nfc
- NfcScanner
class NfcScannerAdded in version 7.3.0
A class that provides functionality to read NFC chips embedded in identity documents. It supports reading from various types of documents including passports, ID cards, and visas.
- NfcScanner()
NfcScanner(@NonNull ComponentActivity activity)
Added in version 7.3.0
Creates a new NfcScanner instance.
- newInstance(activity)
static @NonNull NfcScanner newInstance(@NonNull ComponentActivity activity)
Added in version 7.3.0
Creates a new instance of the NfcScanner.
- captureNfcFrom(capturedId)
@NonNull NFCFlowBuilder captureNfcFrom(@NonNull CapturedId capturedId)
Added in version 7.3.0
Creates a builder to configure and start the NFC reading flow for a captured ID.
- NFCFlowBuilder
class NFCFlowBuilderAdded in version 7.3.0
A builder class to configure and start the NFC reading flow.
- onSuccess(callback)
@NonNull NFCFlowBuilder onSuccess(@NonNull
Function1<@NonNull CapturedId, @NonNullUnit> callback)Added in version 7.3.0
Sets the callback to be invoked when NFC reading succeeds.
- onFailure(callback)
@NonNull NFCFlowBuilder onFailure(@NonNull
Function0<@NonNullUnit> callback)Added in version 7.3.0
Sets the callback to be invoked when NFC reading fails.
- onSkipped(callback)
@NonNull NFCFlowBuilder onSkipped(@NonNull
Function0<@NonNullUnit> callback)Added in version 7.3.0
Sets the callback to be invoked when NFC reading is skipped.
- start()
voidstart()Added in version 7.3.0
Starts the NFC reading flow with the configured callbacks.