RequiresServicesDiscovered

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
abstract fun onAvailable(action: T.() -> Unit)

Sets up a Transformation action when RemoteService become available.

Link copied to clipboard
abstract fun onUnavailable(action: T.() -> Unit)

Sets up a Transformation action when RemoteService become unavailable.

Link copied to clipboard

Binds the object to the RemoteService at a given UUID whenever it is available.