toDeviceEngagement
fun toDeviceEngagement(engagementType: MdocEngagementType = MdocEngagementType.DEVICE_QR): ByteArray
Encodes this single connection method as DeviceRetrievalMethod CBOR.
To encode multiple connection methods (automatically coalescing multiple Ble modes into one DeviceRetrievalMethod), use encodeDeviceRetrievalMethods.
Return
the encoded DeviceRetrievalMethod CBOR bytes.
Parameters
engagementType
the engagement context controlling context-specific field rules and validation.