RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.client / ClientTransactionProvider

ClientTransactionProvider

class ClientTransactionProvider

Implementers of this interface can provide alternative implementations of the bitgatt transactions, like mocking in tests.

Constructors

<init>

ClientTransactionProvider()

Implementers of this interface can provide alternative implementations of the bitgatt transactions, like mocking in tests.

Functions

getConnectTransactionFor

fun getConnectTransactionFor(gattConnection: GattConnection): GattTransaction

Provides a bitgatt connect transaction

getDisconnectTransactionFor

fun getDisconnectTransactionFor(gattConnection: GattConnection): GattTransaction

Provides a bitgatt disconnect transaction

getDiscoverServicesTransactionFor

fun getDiscoverServicesTransactionFor(gattConnection: GattConnection): GattTransaction

Provides a bitgatt discover services transaction

getReadDescriptorTransactionFor

fun getReadDescriptorTransactionFor(gattConnection: GattConnection, descriptor: BluetoothGattDescriptor): GattTransaction

Provides a bitgatt read descriptor transaction

getRequestConnectionIntervalTransactionFor

fun getRequestConnectionIntervalTransactionFor(gattConnection: GattConnection, speed: Speed): GattTransaction

Provides a bitgatt request connection interval transaction

getRequestMtuTransactionFor

fun getRequestMtuTransactionFor(gattConnection: GattConnection, mtu: Int): GattTransaction

Provides a bitgatt request mtu transaction

getSubscribeToGattCharacteristicTransactionFor

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.

getUnsubscribeFromGattCharacteristicTransactionFor

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.

getWriteDescriptorTransaction

fun getWriteDescriptorTransaction(gattConnection: GattConnection, descriptor: BluetoothGattDescriptor): GattTransaction

Provides a write descriptor bitgatt transaction.