commonMain.dev.bluefalcon.BlueFalconDelegate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blue-falcon-rpi Show documentation
Show all versions of blue-falcon-rpi Show documentation
Bluetooth Multiplatform Library
The newest version!
package dev.bluefalcon
import kotlin.js.JsName
@JsName("BlueFalconDelegate")
interface BlueFalconDelegate {
@JsName("didDiscoverDevice")
fun didDiscoverDevice(bluetoothPeripheral: BluetoothPeripheral, advertisementData: Map)
@JsName("didConnect")
fun didConnect(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didDisconnect")
fun didDisconnect(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didDiscoverServices")
fun didDiscoverServices(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didDiscoverCharacteristics")
fun didDiscoverCharacteristics(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didCharacteristcValueChanged")
fun didCharacteristcValueChanged(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic
)
@JsName("didRssiUpdate")
fun didRssiUpdate(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didUpdateMTU")
fun didUpdateMTU(bluetoothPeripheral: BluetoothPeripheral)
@JsName("didReadDescriptor")
fun didReadDescriptor(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristicDescriptor: BluetoothCharacteristicDescriptor
)
@JsName("didWriteDescriptor")
fun didWriteDescriptor(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristicDescriptor: BluetoothCharacteristicDescriptor
)
@JsName("didWriteCharacteristic")
fun didWriteCharacteristic(
bluetoothPeripheral: BluetoothPeripheral,
bluetoothCharacteristic: BluetoothCharacteristic,
success: Boolean
)
}