Android NFC Native Interface

TrustNFCManager

Class Name

Description

class TrustNFCManager : ITrustNFCManager

The NFC Manager main class used as a bridge mechanism between the SDK that integrates it and the NFC SDK processing.

Constructors

Constructor

TrustNFCManager

Types

Class Name

Description

class Builder

Used to provide the setter functions for NFC SDK configuration parameters.

Functions

Method Name

Description

dismissDialog (activity: AppCompatActivity)

Used to dismiss the NFC dialog that is used to show the current progress of NFC scanning process.

extractMRZ (documentImage: Bitmap, listener: IOCRListener)

Used to provide the Bitmap image from which the MRZ data can be extracted.

String getNFCVersion()

Used to get the version of the NFC SDK.

Boolean isAvailable (activity: AppCompatActivity)

Used to check if NFC functionality is available on the device.

Boolean isEnabled (activity: AppCompatActivity)

Used to check if NFC functionality is enabled on the device.

onNewIntent(intent: Intent)

Used to provide the intent which can be used to trigger the NFC scanning process.

setHandler(handler: IBaseNativeToWeb)

Used to set the handler instance which will be used for further communication.

startNFCReading( activity: AppCompatActivity, nfcConfigData: DaonNFCConfiguration, nfcDialogCallback: INFCDialogCallback?)

Used to provide the necessary parameters for NFC reading process.

updateLocalization(languageTag: String)

Used to update the localization of NFC dialog and its information labels.

DaonNFCConfiguration

Class Name

Description

data class DaonNFCConfiguration( val mrzString: String?, val aaChallenge: String?, val bac: DaonTrustBAC?, val languageTag: String = "", val localizationLabels: Map<String, String>? = null) : Parcelable

DaonNFCConfiguration class represents the data necessary for NFC reading process.

Parameters

Parameter Name

Description

mrzString

String representation of MRZ data on the document

aaChallenge

String representation challenge used for Active Authentication verification process

bac

DaonTrustBAC instance

Constructor

Constructor


DaonNFCConfiguration

constructor(

mrzString: String?,

aaChallenge: String?,

bac: DaonTrustBAC?,

languageTag: String = "",

localizationLabels: Map<String, String>? = null

)

Properties

Constructor


aaChallenge

@SerializedName(value = "aac")

val aaChallenge: String?

bac

@SerializedName(value = "bac")

val bac: DaonTrustBAC?

languageTag

@SerializedName(value = "language")

val languageTag: String

localizationLabels

@SerializedName(value = "labels")

val localizationLabels: Map<String, String>? = null

mrzString

@SerializedName(value = "mrz")

val mrzString: String?

Functions

Function Name

Description

int describeContents()


writeToParcel(p0: Parcel, p1: Int)