RequiresServicesDiscovered
interface RequiresServicesDiscovered<T> : ConnectedDeviceBinding<T> , RequiresServicesDiscoveredBinding.NonMutating<T>
A ConnectedDeviceBinding and RequiresServicesDiscoveredBinding.NonMutating that will only bind whenever a service is discovered.
Functions
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 RemoteService at a given UUID whenever it is available and updates the object whenever it changes.
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 RemoteService at a given UUID whenever it is available.