RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.server.listeners / GattServerConnectionChangeListener

GattServerConnectionChangeListener

object GattServerConnectionChangeListener : BaseServerConnectionEventListener

GATT server listener that listens to connection changes with a remote device. Connection changes are available per remote device

Note: This Singleton listener must be registered when app in initialized

Functions

getDataObservable

fun getDataObservable(device: BluetoothDevice): Observable<PeripheralConnectionStatus>

Observable on which changes to Gatt server connection state changes are available

onServerConnectionStateChanged

fun onServerConnectionStateChanged(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit

Inherited Functions

onServerCharacteristicReadRequest

open fun onServerCharacteristicReadRequest(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit

onServerCharacteristicWriteRequest

open fun onServerCharacteristicWriteRequest(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit

onServerDescriptorReadRequest

open fun onServerDescriptorReadRequest(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit

onServerDescriptorWriteRequest

open fun onServerDescriptorWriteRequest(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit

onServerMtuChanged

open fun onServerMtuChanged(device: BluetoothDevice, result: TransactionResult, connection: GattServerConnection): Unit