EnsuresAvailable
A ConnectedDeviceBinding that assumes the ConnectableDevice being bound to is actually connected and has discovered its RemoteService
Functions
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 RemoteService at a given UUID and updates the object whenever it changes.
Link copied to clipboard
Binds the object to the RemoteService at a given UUID.