toNdefRecord

fun toNdefRecord(connectionMethod: MdocConnectionMethod, auxiliaryReferences: List<String>, isForHandoverSelect: Boolean): Pair<NdefRecord, ByteArray>?

Creates Carrier Reference and Auxiliary Data Reference records.

If this is to be included in a Handover Select method, pass {"mdoc"} for auxiliaryReferences.

Return

null if the connection method doesn't support NFC handover, otherwise the NDEF record and the Alternative Carrier record.

Parameters

auxiliaryReferences

A list of references to include in the Alternative Carrier Record

isForHandoverSelect

Set to true if this is for a Handover Select method, and false if for Handover Request record.