NfcConfiguration

@Serializable
data class NfcConfiguration(val handoverMode: NfcHandoverMode = NfcHandoverMode.Negotiated, val bleMode: BleMode = BleMode.MDocClientCentral, val logLevel: Logger.LogLevel = Logger.LogLevel.ERROR)

A configuration to be applied for NFC-based device engagements, which must be set outside of any active or pending engagement (for example, when the application first starts).

Constructors

Link copied to clipboard
constructor(handoverMode: NfcHandoverMode = NfcHandoverMode.Negotiated, bleMode: BleMode = BleMode.MDocClientCentral, logLevel: Logger.LogLevel = Logger.LogLevel.ERROR)

Properties

Link copied to clipboard

BLE role used for Static NFC handover. Ignored for Negotiated Handover, where the Verifier provides a list of supported connection methods and the Holder selects the most appropriate one. If BLE with mdoc central client mode is supported, the SDK will choose it.

Link copied to clipboard

NFC handover strategy (Negotiated or Static). See: Connection Handover Technical Specification, NFC Forum.

Link copied to clipboard
val logLevel: Logger.LogLevel

Minimum log level for NFC operations. Ignored if the SDK has already been initialized with a different log level before engagement begins.