RequiresServicesDiscovered
interface RequiresServicesDiscovered<T> : RemoteServiceBinding<T> , RequiresServicesDiscoveredBinding.NonMutating<T>
A RemoteServiceBinding and RequiresServicesDiscoveredBinding.NonMutating that will only bind whenever the RemoteService has been discovered.
Functions
Link copied to clipboard
abstract fun <R> R.bindCharacteristic(uuid: UUID, update: T.(R) -> T = { this }, binding: RemoteCharacteristicBinding.RequiresServicesDiscovered<R>.() -> Unit)
open fun <R> R.bindCharacteristic(uuidString: String, update: T.(R) -> T = { this }, binding: RemoteCharacteristicBinding.RequiresServicesDiscovered<R>.() -> Unit)
Binds an object of type R to the RemoteCharacteristic at a given UUID whenever it is available 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.RequiresServicesDiscovered<R>.() -> Unit)
open fun <R> R.bindService(uuidString: String, update: T.(R) -> T = { this }, binding: RemoteServiceBinding.RequiresServicesDiscovered<R>.() -> Unit)
Binds an object of type R to the included RemoteService at a given UUID whenever it is available and updates the object whenever it changes.
Link copied to clipboard
abstract fun characteristic(uuid: UUID, binding: RemoteCharacteristicBinding.RequiresServicesDiscovered<T>.() -> Unit)
open fun characteristic(uuidString: String, binding: RemoteCharacteristicBinding.RequiresServicesDiscovered<T>.() -> Unit)
Binds the object to the RemoteCharacteristic at a given UUID whenever it is available.
Link copied to clipboard
Link copied to clipboard
Sets up a Transformation action when RemoteService become available.
Link copied to clipboard
Sets up a Transformation action when RemoteService become unavailable.
Link copied to clipboard
abstract fun service(uuid: UUID, binding: RemoteServiceBinding.RequiresServicesDiscovered<T>.() -> Unit)
open fun service(uuidString: String, binding: RemoteServiceBinding.RequiresServicesDiscovered<T>.() -> Unit)
Binds the object to the included RemoteService at a given UUID whenever it is available.