Android NFC Native Interface

TrustNFCManager

Class NameDescription
class TrustNFCManager : ITrustNFCManagerThe 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 NameDescription
class BuilderUsed to provide the setter functions for NFC SDK configuration parameters.

Functions

Method NameDescription
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 NameDescription
data class DaonNFCConfiguration( val mrzString: String?, val aaChallenge: String?, val bac: DaonTrustBAC?, val languageTag: String = "", val localizationLabels: Map<String, String>? = null) : ParcelableDaonNFCConfiguration class represents the data necessary for NFC reading process.

Parameters

Parameter NameDescription
mrzStringString representation of MRZ data on the document
aaChallengeString representation challenge used for Active Authentication verification process
bacDaonTrustBAC 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 NameDescription
int describeContents()
writeToParcel(p0: Parcel, p1: Int)
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard