onDeviceConnected

abstract fun onDeviceConnected(transport: DataTransport)

Called when a remote mdoc reader has connected.

The application should use the passed-in DataTransport with com.android.identity.android.mdoc.deviceretrieval.DeviceRetrievalHelper to start the transaction.

After this is called, no more callbacks will be done on listener and all other listening transports will be closed. Calling .close will not close the passed-in transport.

Parameters

transport

a DataTransport for the connection to the remote mdoc reader.