toNdefRecord
abstract fun toNdefRecord(auxiliaryReferences: List<String>, role: MdocRole, skipUuids: Boolean): Pair<NdefRecord, NdefRecord>?
Creates a NDEF Connection Handover Carrier Reference record and Auxiliary Data Reference records.
Return
The NDEF record and the Alternative Carrier record or null if NFC handover is not supported.
Parameters
auxiliaryReferences
A list of references to include in the Alternative Carrier Record
role
If MdocRole.MDOC the generated records will be for the Handover Select message, otherwise for Handover Request.
skipUuids
if true
, UUIDs will not be included in the record