RemoteServiceWrapper

actual interface RemoteServiceWrapper

Accessor to a CBService

Inheritors

expect interface RemoteServiceWrapper

Accessor to the platform level Bluetooth service

actual interface RemoteServiceWrapper

Accessor to a CBService

Inheritors

actual interface RemoteServiceWrapper

Accessor to a Web Bluetooth BluetoothRemoteGATTService. A structural snapshot built during the (async) service discovery in the connection manager.

Properties

Link copied to clipboard

The list of RemoteCharacteristicWrapper associated with the service

The list of RemoteCharacteristicWrapper associated with the service

The list of RemoteCharacteristicWrapper associated with the service

The list of RemoteCharacteristicWrapper associated with the service

The list of RemoteCharacteristicWrapper associated with the service

Link copied to clipboard

The list of RemoteServiceWrapper included in this service

The list of RemoteServiceWrapper this service includes

The list of RemoteServiceWrapper this service includes

The list of RemoteServiceWrapper this service includes

The list of RemoteServiceWrapper this service includes

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
actual abstract val type: Service.Type

The Service.Type of this service (primary/secondary)

actual abstract val type: Service.Type

The Service.Type of the service

expect abstract val type: Service.Type

The Service.Type of the service

actual abstract val type: Service.Type

The Service.Type of the service

actual abstract val type: Service.Type

The Service.Type of the service

Link copied to clipboard
actual abstract val uuid: UUID

The UUID of the service

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

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 RemoteCharacteristicWrapper for the characteristic with a given java.util.UUID if it belongs to the service