appleMain.dev.bluefalcon.BluetoothService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blue-falcon Show documentation
Show all versions of blue-falcon Show documentation
Bluetooth Multiplatform Library
package dev.bluefalcon
import kotlinx.coroutines.flow.MutableStateFlow
import platform.CoreBluetooth.CBCharacteristic
import platform.CoreBluetooth.CBService
actual class BluetoothService(val service: CBService) {
actual val name: String?
get() = service.UUID.UUIDString
actual val characteristics: List
get() = service.characteristics?.map {
BluetoothCharacteristic(it as CBCharacteristic)
} ?: emptyList()
internal actual val _characteristicsFlow = MutableStateFlow>(emptyList())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy