class ClientTransactionProvider
Implementers of this interface can provide alternative implementations of the bitgatt transactions, like mocking in tests.
ClientTransactionProvider()
Implementers of this interface can provide alternative implementations of the bitgatt transactions, like mocking in tests. |
fun getConnectTransactionFor(gattConnection: GattConnection): GattTransaction
Provides a bitgatt connect transaction |
|
fun getDisconnectTransactionFor(gattConnection: GattConnection): GattTransaction
Provides a bitgatt disconnect transaction |
|
fun getDiscoverServicesTransactionFor(gattConnection: GattConnection): GattTransaction
Provides a bitgatt discover services transaction |
|
fun getReadDescriptorTransactionFor(gattConnection: GattConnection, descriptor: BluetoothGattDescriptor): GattTransaction
Provides a bitgatt read descriptor transaction |
|
fun getRequestConnectionIntervalTransactionFor(gattConnection: GattConnection, speed: Speed): GattTransaction
Provides a bitgatt request connection interval transaction |
|
fun getRequestMtuTransactionFor(gattConnection: GattConnection, mtu: Int): GattTransaction
Provides a bitgatt request mtu transaction |
|
fun getSubscribeToGattCharacteristicTransactionFor(gattConnection: GattConnection, bluetoothGattCharacteristic: BluetoothGattCharacteristic): GattTransaction
Provides a subscribe to gatt characteristic bitgatt transaction. This operation does not run any bluetooth specific operation, instead just tells the system our app is interested in notifications from this characteristic. |
|
fun getUnsubscribeFromGattCharacteristicTransactionFor(gattConnection: GattConnection, bluetoothGattCharacteristic: BluetoothGattCharacteristic): GattTransaction
Provides an unsubscribe to gatt characteristic bitgatt transaction. This operation does not run any bluetooth specific operation, instead just tells the system our app is not interested in notifications from this characteristic anymore. |
|
fun getWriteDescriptorTransaction(gattConnection: GattConnection, descriptor: BluetoothGattDescriptor): GattTransaction
Provides a write descriptor bitgatt transaction. |