Package-level declarations

Types

Link copied to clipboard

Android implementation of BaseAdvertisementData

Platform specific implementation of BaseAdvertisementData

actual class AdvertisementData

iOS implementation of BaseAdvertisementData

JavaScript implementation of BaseAdvertisementData. Not actually implemented

Java implementation of BaseAdvertisementData. Not actually implemented

Link copied to clipboard

Data advertised by a Bluetooth Device

Link copied to clipboard
abstract class BaseDeviceConnectionManager(deviceWrapper: DeviceWrapper, settings: ConnectionSettings, coroutineScope: CoroutineScope) : DeviceConnectionManager, CoroutineScope
Link copied to clipboard

A wrapper to access a BluetoothGatt

Link copied to clipboard

A DeviceState for a Device that can be connected to

Link copied to clipboard
data class ConnectionSettings(val reconnectionSettings: ConnectionSettings.ReconnectionSettings = ReconnectionSettings.Always, val logger: Logger = RestrictedLogger(RestrictedLogLevel.None))

Settings to apply to a Device when connecting

Link copied to clipboard
Link copied to clipboard
class DefaultCBPeripheralWrapper(peripheral: <Error class: unknown class>) : DeviceWrapper

Default implementation of DeviceWrapper

Link copied to clipboard

Default implementation of DeviceWrapper

Link copied to clipboard
interface Device

A Bluetooth device that can be connected to

Link copied to clipboard
sealed class DeviceAction

An action a Device can execute on one of its com.splendo.kaluga.bluetooth.Attribute

Link copied to clipboard

A manager for connecting a Device

Link copied to clipboard
class DeviceImpl(val identifier: Identifier, initialDeviceInfo: DeviceInfoImpl, connectionSettings: ConnectionSettings, connectionManagerBuilder: (ConnectionSettings) -> DeviceConnectionManager, coroutineScope: CoroutineScope, createDeviceStateFlow: (DeviceConnectionManager, CoroutineContext) -> ConnectableDeviceStateFlowRepo = { connectionManager, context -> ConnectableDeviceStateImplRepo(connectionSettings.reconnectionSettings, connectionManager, context) }) : Device, CoroutineScope

Implementation of Device

Link copied to clipboard
interface DeviceInfo

Properties of a Bluetooth Device

Link copied to clipboard
data class DeviceInfoImpl(val name: String?, val identifier: Identifier, val rssi: RSSI, val advertisementData: BaseAdvertisementData) : DeviceInfo

An implementation of DeviceInfo

Link copied to clipboard
interface DeviceState

The state of a Device

Link copied to clipboard
actual interface DeviceWrapper

Accessor to the BluetoothDevice

expect interface DeviceWrapper

Accessor to the platform level Bluetooth device

actual interface DeviceWrapper

Accessor to the CBPeripheral

actual interface DeviceWrapper

Accessor to the JavaScript Bluetooth device. Not Actually implemented

actual interface DeviceWrapper

Accessor to the Java Bluetooth device. Not Actually implemented

Link copied to clipboard
actual typealias Identifier = String

Unique identifier of a Bluetooth Device

expect class Identifier

Unique identifier of a Bluetooth Device

actual typealias Identifier = <Error class: unknown class>

Unique identifier of a Bluetooth Device

actual typealias Identifier = UUID

Unique identifier of a Bluetooth Device

actual typealias Identifier = UUID

Unique identifier of a Bluetooth Device

Link copied to clipboard
open class IdentifierSerializer : KSerializer<SerializableIdentifier>

KSerializer for a SerializableIdentifier

Link copied to clipboard

A DeviceState indicating the Device cannot be connected to

Link copied to clipboard
@Serializable(with = IdentifierSerializer::class)
data class SerializableIdentifier(val identifier: Identifier)

A Identifier that can be serialized

Properties

Link copied to clipboard
Link copied to clipboard

Gets a string representation of an Identifier

Functions

Link copied to clipboard
actual fun identifierFromString(stringValue: String): Identifier?

Gets an Identifier from a string value

expect fun identifierFromString(stringValue: String): Identifier?

Gets an Identifier from a string value

actual fun identifierFromString(stringValue: String): Identifier?

Gets an Identifier from a string value

actual fun identifierFromString(stringValue: String): Identifier?

Gets an Identifier from a string value

actual fun identifierFromString(stringValue: String): Identifier?

Gets an Identifier from a string value

Link copied to clipboard

Gets a random Identifier

Gets a random Identifier

Gets a random Identifier

Gets a random Identifier

Gets a random Identifier