DataTransportBle

Constructors

Link copied to clipboard
constructor(context: Context, role: DataTransport.Role, connectionMethod: MdocConnectionMethodBle, options: DataTransportOptions)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

A MdocConnectionMethod instance that can be used to connect to this transport.

Link copied to clipboard
protected val context: Context
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets the amount of time spent scanning for the other device.

Link copied to clipboard
protected var serviceUuid: UUID?

Functions

Link copied to clipboard
abstract fun close()

Closes the connection with the remote mdoc or mdoc reader.

Link copied to clipboard
abstract fun connect()

Starts connecting to the remote mdoc or mdoc reader.

Link copied to clipboard

Returns the next message received, if any.

Link copied to clipboard
protected fun inhibitCallbacks()
Link copied to clipboard
protected fun reportConnected()
Link copied to clipboard
protected fun reportConnecting()
Link copied to clipboard
protected fun reportDisconnected()
Link copied to clipboard
protected fun reportError(error: Throwable)
Link copied to clipboard
protected fun reportMessageReceived(data: ByteArray)
Link copied to clipboard
abstract fun sendMessage(data: ByteArray)

Sends data to the remote mdoc or mdoc reader.

Link copied to clipboard

Sends a transport-specific termination message.

Link copied to clipboard
abstract fun setEDeviceKeyBytes(encodedEDeviceKeyBytes: ByteArray)

Sets the bytes of EDeviceKeyBytes.

Link copied to clipboard
fun setListener(listener: DataTransport.Listener?, executor: Executor?)

Set the listener to be used for notification.

Whether the transport supports a transport-specific termination message.