bind
Binds an object of type T to the Flow of a ConnectableDevice, so that it may be updated according to binding
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the Flow of the ConnectableDevice that should trigger updates.
the CoroutineScope in which to bind
the ConnectedDeviceBinding.RequiresServicesDiscovered that sets up binding to the ConnectableDevice
Type Parameters
the type of the object to bind to
Binds an object of type T to a ConnectableDevice, so that it may be updated according to binding
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the ConnectableDevice that should trigger updates.
the CoroutineScope in which to bind
the ConnectedDeviceBinding.RequiresServicesDiscovered that sets up binding to the ConnectableDevice
Type Parameters
the type of the object to bind to
Binds an object of type T to a ConnectableDeviceState.Connected.DiscoveredServices state, so that it may be updated according to binding. This assumes services has been discovered and as such any binding will fail if a RemoteAttribute is not available.
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the CoroutineScope in which to bind
the ConnectedDeviceBinding.EnsuresAvailable that sets up binding to the ConnectableDevice
Type Parameters
the type of the object to bind to
Binds an object of type T to the Flow of a RemoteService, so that it may be updated according to binding
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the Flow of the RemoteService that should trigger updates.
the CoroutineScope in which to bind
the RemoteServiceBinding.RequiresServicesDiscovered that sets up binding to the RemoteService
Type Parameters
the type of the object to bind to
Binds an object of type T to a RemoteService, so that it may be updated according to binding.
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the RemoteService that should trigger updates.
the CoroutineScope in which to bind
the RemoteServiceBinding.EnsuresAvailable that sets up binding to the RemoteService
Type Parameters
the type of the object to bind to
Binds an object of type T to the Flow of a RemoteCharacteristic, so that it may be updated according to binding
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the Flow of the RemoteCharacteristic that should trigger updates.
the CoroutineScope in which to bind
the RemoteCharacteristicBinding.RequiresServicesDiscovered that sets up binding to the RemoteCharacteristic
Type Parameters
the type of the object to bind to
Binds an object of type T to a RemoteCharacteristic, so that it may be updated according to binding.
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the RemoteCharacteristic that should trigger updates.
the CoroutineScope in which to bind
the RemoteCharacteristicBinding.EnsuresServicesAvailable that sets up binding to the RemoteCharacteristic
Type Parameters
the type of the object to bind to
Binds an object of type T to the Flow of a RemoteDescriptor, so that it may be updated according to binding
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the Flow of the RemoteDescriptor that should trigger updates.
the CoroutineScope in which to bind
the RemoteDescriptorBinding.RequiresServicesDiscovered that sets up binding to the RemoteDescriptor
Type Parameters
the type of the object to bind to
Binds an object of type T to a RemoteDescriptor, so that it may be updated according to binding.
Return
a StateFlow of T that updates whenever mutating occurs due to actions set up in binding
Parameters
the RemoteDescriptor that should trigger updates.
the CoroutineScope in which to bind
the RemoteDescriptorBinding that sets up binding to the RemoteDescriptor
Type Parameters
the type of the object to bind to