DeviceWrapper

actual interface DeviceWrapper

Accessor to the BluetoothDevice

Inheritors

actual interface DeviceWrapper

Accessor to the CBPeripheral

Inheritors

expect interface DeviceWrapper

Accessor to the platform level Bluetooth device

actual interface DeviceWrapper

Accessor to a Web Bluetooth BluetoothDevice. The live JS device is held in the per-target registry under identifier; this wrapper only carries its identifier and name.

Inheritors

Types

Link copied to clipboard

Bond state of the Device

Properties

Link copied to clipboard

The BondState of the device

Link copied to clipboard
actual abstract val identifier: Identifier

Identifier of the Bluetooth device

actual abstract val identifier: Identifier

Identifier of the Bluetooth device

expect abstract val identifier: Identifier

Identifier of the Bluetooth device

actual abstract val identifier: Identifier

Identifier of the Bluetooth device

Link copied to clipboard
actual abstract val name: String?

Name of the Bluetooth device

actual abstract val name: String?

Name of the Bluetooth device

expect abstract val name: String?

Name of the Bluetooth device

actual abstract val name: String?

Name of the Bluetooth device

Functions

Link copied to clipboard
abstract fun connectGatt(context: Context, autoConnect: Boolean, callback: BluetoothGattCallback): BluetoothGattWrapper

Connects to the GATT Server hosted by the BluetoothDevice

Link copied to clipboard
abstract fun createBond()

Creates a bond with the device (pair)

Link copied to clipboard
abstract fun removeBond()

Removes the bond from the device (unpair)