Package com.juul.kable

Types

Advertisement
Link copied to clipboard
class Advertisement
data class Advertisement
data class Advertisement
data class Advertisement
data class Advertisement
AndroidPeripheral
Link copied to clipboard
class AndroidPeripheral : Peripheral
AndroidScanner
Link copied to clipboard
class AndroidScanner : Scanner
ApplePeripheral
Link copied to clipboard
class ApplePeripheral : Peripheral
class ApplePeripheral : Peripheral
class ApplePeripheral : Peripheral
class ApplePeripheral : Peripheral
AppleScanner
Link copied to clipboard
class AppleScanner : Scanner
class AppleScanner : Scanner
class AppleScanner : Scanner
class AppleScanner : Scanner
BluetoothDisabledException
Link copied to clipboard
common
class BluetoothDisabledException : BluetoothException
BluetoothException
Link copied to clipboard
common
open class BluetoothException : Exception
Failure occurred with the underlying Bluetooth system.
BluetoothLeException
Link copied to clipboard
common
typealias BluetoothLeException = BluetoothException
BondState
Link copied to clipboard
enum BondState : Enum<BondState>
CentralManager
Link copied to clipboard
class CentralManager
class CentralManager
class CentralManager
class CentralManager
Characteristic
Link copied to clipboard
common
interface Characteristic
ConnectionLostException
Link copied to clipboard
common
class ConnectionLostException : IOException
ConnectionRejectedException
Link copied to clipboard
common
class ConnectionRejectedException : IOException
Descriptor
Link copied to clipboard
common
interface Descriptor
DiscoveredCharacteristic
Link copied to clipboard
common
data class DiscoveredCharacteristic : Characteristic
DiscoveredService
Link copied to clipboard
common
data class DiscoveredService : Service
GattRequestRejectedException
Link copied to clipboard
class GattRequestRejectedException : BluetoothException
Thrown when underlying BluetoothGatt method call returns false.
GattStatusException
Link copied to clipboard
common
class GattStatusException : IOException
IOException
Link copied to clipboard
open class IOException : Exception
typealias IOException = IOException
JsPeripheral
Link copied to clipboard
js
class JsPeripheral : Peripheral
JsScanner
Link copied to clipboard
js
class JsScanner : Scanner
Only available on Chrome 79+ with "Experimental Web Platform features" enabled via: chrome://flags/#enable-experimental-web-platform-featuresSee also: Chrome Platform Status: Web Bluetooth Scanning
Kable
Link copied to clipboard
object Kable
KableInitializer
Link copied to clipboard
class KableInitializer : Initializer<Kable>
LazyCharacteristic
Link copied to clipboard
common
data class LazyCharacteristic : Characteristic
LazyDescriptor
Link copied to clipboard
common
data class LazyDescriptor(serviceUuid: Uuid, characteristicUuid: Uuid, descriptorUuid: Uuid) : Descriptor
ManufacturerData
Link copied to clipboard
common
class ManufacturerData(code: Int, data: ByteArray)
NotReadyException
Link copied to clipboard
common
class NotReadyException : IOException
ObsoleteKableApi
Link copied to clipboard
common
annotation class ObsoleteKableApi
Marks declarations that are obsolete in Kable API, which means that the design of the corresponding declarations has known flaws/drawbacks and they will be redesigned or replaced in the future.
Options
Link copied to clipboard
js
data class Options(optionalServices: Array<String>, filters: Array<Options.Filter>?)
https://developer.mozilla.
OutOfOrderGattCallbackException
Link copied to clipboard
class OutOfOrderGattCallbackException : IllegalStateException
Peripheral
Link copied to clipboard
common
interface Peripheral
PeripheralBuilder
Link copied to clipboard
common
class PeripheralBuilder
Phy
Link copied to clipboard
enum Phy : Enum<Phy>
Preferred Physical Layer (PHY) for connections to remote LE devices.
Priority
Link copied to clipboard
enum Priority : Enum<Priority>
ScanFailedException
Link copied to clipboard
class ScanFailedException : IllegalStateException
Scanner
Link copied to clipboard
common
interface Scanner
ScannerBuilder
Link copied to clipboard
common
class ScannerBuilder
Service
Link copied to clipboard
common
interface Service
ServicesDiscoveredPeripheral
Link copied to clipboard
common
class ServicesDiscoveredPeripheral
State
Link copied to clipboard
common
sealed class State
Transport
Link copied to clipboard
enum Transport : Enum<Transport>
Preferred transport for GATT connections to remote dual-mode devices.
WriteNotificationDescriptor
Link copied to clipboard
Mode specifying if config descriptor (0x2902) should be written to when starting/stopping an observation.
WriteType
Link copied to clipboard
common
enum WriteType : Enum<WriteType>

Functions

characteristicOf
Link copied to clipboard
common
fun characteristicOf(service: String, characteristic: String): Characteristic
descriptorOf
Link copied to clipboard
common
fun descriptorOf(service: String, characteristic: String, descriptor: String): Descriptor
peripheral
Link copied to clipboard
fun CoroutineScope.peripheral(bluetoothDevice: BluetoothDevice, writeObserveDescriptor: WriteNotificationDescriptor): Peripheral
fun CoroutineScope.peripheral(bluetoothDevice: BluetoothDevice, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, writeObserveDescriptor: WriteNotificationDescriptor): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(bluetoothDevice: BluetoothDevice, transport: Transport, phy: Phy = Phy.Le1M): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, transport: Transport, phy: Phy = Phy.Le1M): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
fun CoroutineScope.peripheral(advertisement: Advertisement, builderAction: PeripheralBuilderAction = {}): Peripheral
requestPeripheral
Link copied to clipboard
js
fun CoroutineScope.requestPeripheral(options: Options, builderAction: PeripheralBuilderAction = {}): Promise<Peripheral>
Scanner
Link copied to clipboard
common
fun Scanner(builderAction: ScannerBuilder.() -> Unit = {}): Scanner
fun Scanner(services: List<Uuid>?): Scanner