EnsuresAvailable
A RemoteServiceBinding that assumes the RemoteService being bound to has been discovered.
Functions
Link copied to clipboard
abstract fun <R> R.bindCharacteristic(uuid: UUID, update: T.(R) -> T = { this }, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<R>.() -> Unit)
open fun <R> R.bindCharacteristic(uuidString: String, update: T.(R) -> T = { this }, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<R>.() -> Unit)
Binds an object of type R to the RemoteCharacteristic at a given UUID and updates the object whenever it changes.
Link copied to clipboard
abstract fun <R> R.bindService(uuid: UUID, update: T.(R) -> T = { this }, binding: RemoteServiceBinding.EnsuresAvailable<R>.() -> Unit)
open fun <R> R.bindService(uuidString: String, update: T.(R) -> T = { this }, binding: RemoteServiceBinding.EnsuresAvailable<R>.() -> Unit)
Binds an object of type R to the included RemoteService at a given UUID and updates the object whenever it changes.
Link copied to clipboard
abstract fun characteristic(uuid: UUID, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<T>.() -> Unit)
open fun characteristic(uuidString: String, binding: RemoteCharacteristicBinding.EnsuresServicesAvailable<T>.() -> Unit)
Binds the object to the RemoteCharacteristic at a given UUID.
Link copied to clipboard
Binds the object to the included RemoteService at a given UUID.