LocalCharacteristicWrapper

Accessor to the platform level Local Bluetooth characteristic.

Implemented per platform by DefaultLocalCharacteristicWrapper (wrapping the framework characteristic) and mockable in tests.

Inheritors

Accessor to the platform level Local Bluetooth characteristic.

Implemented per platform by DefaultLocalCharacteristicWrapper (wrapping the framework characteristic) and mockable in tests.

Inheritors

Accessor to the platform level Local Bluetooth characteristic.

Implemented per platform by DefaultLocalCharacteristicWrapper (wrapping the framework characteristic) and mockable in tests.

Properties

Link copied to clipboard

Identity used to correlate this characteristic with incoming GATT callbacks.

Identity used to correlate this characteristic with incoming peripheral-manager callbacks.

Link copied to clipboard
Link copied to clipboard
actual abstract val properties: Set<CharacteristicProperty>
actual abstract val properties: Set<CharacteristicProperty>
expect abstract val properties: Set<CharacteristicProperty>
Link copied to clipboard
actual abstract val uuid: UUID
actual abstract val uuid: UUID
expect abstract val uuid: UUID

Functions

Link copied to clipboard
actual abstract fun addDescriptor(descriptor: LocalDescriptorWrapper)

Adds a LocalDescriptorWrapper to the characteristic

actual abstract fun addDescriptor(descriptor: LocalDescriptorWrapper)

Adds a LocalDescriptorWrapper to the characteristic

expect abstract fun addDescriptor(descriptor: LocalDescriptorWrapper)

Adds a LocalDescriptorWrapper to the characteristic

Link copied to clipboard
abstract fun addToService(service: BluetoothGattService)

Adds the characteristic to a BluetoothGattService

abstract fun addToService(service: CBMutableService)

Adds the characteristic to a CBMutableService

Link copied to clipboard
abstract fun notify(gattServer: BluetoothGattServer, device: BluetoothDevice, value: ByteArray, indicate: Boolean): Boolean

Notifies a BluetoothDevice of a new value through a BluetoothGattServer

Link copied to clipboard
abstract fun updateValue(serverWrapper: KalugaBluetoothServerWrapper, value: NSData, centrals: List<CBCentral>): Boolean

Updates the value of the characteristic for the given centrals through a KalugaBluetoothServerWrapper