ServiceWrapper

actual interface ServiceWrapper

Accessor to a BluetoothGattService

Inheritors

expect interface ServiceWrapper

Accessor to the platform level Bluetooth service

actual interface ServiceWrapper

Accessor to a CBService

Inheritors

actual interface ServiceWrapper

JavaScript accessor to a Bluetooth service. Not Actually implemented

actual interface ServiceWrapper

Java accessor to a Bluetooth service. Not Actually implemented

Types

Link copied to clipboard

Service Type

Properties

Link copied to clipboard

The list of CharacteristicWrapper associated with the service

The list of CharacteristicWrapper associated with the service

The list of CharacteristicWrapper associated with the service

The list of CharacteristicWrapper associated with the service

The list of CharacteristicWrapper associated with the service

Link copied to clipboard

The list of ServiceWrapper included in this service

Link copied to clipboard
abstract val instanceId: Int

Returns the instance ID for this service. If a remote device offers multiple services with the same UUID (ex. multiple battery services for different batteries), the instance ID is used to distinguish services.

Link copied to clipboard

The Type of this service (primary/secondary)

Link copied to clipboard
actual abstract val uuid: UUID

The UUID of the service

expect abstract val uuid: UUID

The UUID of the service

actual abstract val uuid: UUID

The UUID of the service

actual abstract val uuid: UUID

The UUID of the service

actual abstract val uuid: UUID

The UUID of the service

Functions

Link copied to clipboard

Adds a BluetoothGattCharacteristic to the service

Link copied to clipboard
abstract fun addService(service: BluetoothGattService): Boolean

Adds an included BluetoothGattService to the service

Link copied to clipboard

Gets the CharacteristicWrapper for the characteristic with a given java.util.UUID if it belongs to the service