service
abstract fun service(uuid: UUID, binding: RemoteServiceBinding.RequiresServicesDiscovered<T>.() -> Unit)
Binds the object to the included RemoteService at a given UUID whenever it is available.
Parameters
uuid
the UUID of the RemoteService to bind to
binding
the RemoteServiceBinding.RequiresServicesDiscovered set up binding to the RemoteService
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.
Parameters
uuidString
the string of the UUID of the RemoteService to bind to
binding
the RemoteServiceBinding.RequiresServicesDiscovered set up binding to the RemoteService
Throws
if the UUID is not valid