AndroidMdocTransportFactory
class AndroidMdocTransportFactory(centralConfig: BleCentralConfig = BleCentralConfig()) : MdocTransportFactory
An MdocTransportFactory for Android that uses the platform Android Bluetooth stack (BluetoothGatt, BluetoothLeScanner, BluetoothGattServer, BluetoothLeAdvertiser, and BluetoothSocket L2CAP channels) with configurable BleCentralConfig retry and timeout parameters.
Parameters
centralConfig
BLE Central retry, scan-restart, and L2CAP connection timing parameters.
Functions
Link copied to clipboard
open override fun createTransport(connectionMethod: MdocConnectionMethod, role: MdocRole, options: MdocTransportOptions): MdocTransport
Creates a new MdocTransport for a single connectionMethod.
Link copied to clipboard
open override fun createTransports(connectionMethods: List<MdocConnectionMethod>, role: MdocRole, options: MdocTransportOptions): List<MdocTransport>
Creates the MdocTransport instances needed to serve connectionMethods.