Package-level declarations
Types
Data advertised by a BluetoothServer
Identity of a local Bluetooth attribute (service, characteristic or descriptor), used to correlate a registered action with the matching incoming platform callback.
Builder class for creating a BluetoothServer.
A Bluetooth Server that makes the Hardware advertise AdvertiseData and exposes LocalService to connect to.
A default implementation of com.splendo.kaluga.bluetooth.server.BaseBluetoothServerBuilder
A default implementation of com.splendo.kaluga.bluetooth.server.BaseBluetoothServerBuilder
A default implementation of BaseBluetoothServerBuilder
Sets up a BluetoothServer
The result of buildCapturingLocalService, holding the built LocalService together with every read, write and subscription action captured while building it.
A Device that connected to a BluetoothServer
A Device that connected to a BluetoothServer
A Device that connected to a BluetoothServer
The default implementation of BluetoothServer. It makes the Hardware advertise AdvertiseData and exposes LocalService to connect to.
The default ConnectedDevice, wrapping the platform BluetoothDevice.
The default ConnectedDevice, wrapping the platform CBCentral.
The LocalServiceWrapperBuilder backed by the Android Bluetooth framework.
The LocalServiceWrapperBuilder backed by CoreBluetooth.
A Characteristic available from a BluetoothServer
Accessor to the platform level Local Bluetooth characteristic.
Accessor to the platform level Local Bluetooth characteristic.
Accessor to the platform level Local Bluetooth characteristic.
A Descriptor available from a BluetoothServer
Accessor to the platform level Local Bluetooth descriptor.
Accessor to the platform level Local Bluetooth descriptor.
Accessor to the platform level Local Bluetooth descriptor.
A Service available from a BluetoothServer
Accessor to the platform level Local Bluetooth service.
Accessor to the platform level Local Bluetooth service.
Accessor to the platform level Local Bluetooth service.
Creates the platform LocalServiceWrappers, LocalCharacteristicWrappers and LocalDescriptorWrappers for a LocalService graph. Injected into the DSL so tests can supply wrappers that don't require a live Bluetooth stack.
Settings for configuring a BluetoothServer
The Status of a BluetoothServer
Functions
Test support builder that constructs a LocalService while capturing the per-attribute read and write actions and the subscribable characteristics into a CapturedLocalService.
Makes this LocalCharacteristic readable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice to always return GattResponse.ReadSuccess Cannot be called if LocalCharacteristic.DSL.readable, or LocalCharacteristic.DSL.readableAlwaysSuccess has been called before
Makes this LocalDescriptor readable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice to always return GattResponse.ReadSuccess Cannot be called if LocalDescriptor.DSL.readable, or LocalDescriptor.DSL.readableAlwaysSuccess has been called before
Restores the device's global Bluetooth adapter name if a previous BluetoothServer advertising session overrode it (to advertise a custom local name) and was interrupted—e.g. by a process kill—before it could restore it. BluetoothServer restoration is best-effort and runs on graceful teardown; call this to also repair a leak from a prior process, for example from Application.onCreate, when the app does not build a server on startup.
Makes this LocalCharacteristic a LocalCharacteristic.Notifiable and automatically sends the ByteArray as a notification This method can only be called once.
Makes this LocalCharacteristic a LocalCharacteristic.Notifiable and automatically sends a ByteArray notification upon Trigger This method can only be called once.
Makes this LocalDescriptor writable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice Cannot be called if LocalDescriptor.DSL.writable or LocalDescriptor.DSL.writableAlwaysSuccess has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice Cannot be called if writable has been called before
Makes this LocalDescriptor writable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice and always responds with GattResponse.WriteSuccess.Acknowledged Cannot be called if LocalDescriptor.DSL.writable or LocalDescriptor.DSL.writableAlwaysSuccess has been called before
Makes this LocalCharacteristic writable by a com.splendo.kaluga.bluetooth.server.ConnectedDevice and always responds with GattResponse.WriteSuccess.Acknowledged Cannot be called if writable has been called before