Flow Binding Property Id With Default Value On Scope
class FlowBindingPropertyIdWithDefaultValueOnScope<T>(flow: Flow<T>, coroutineScope: CoroutineScope, defaultValue: T)
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
A flow delegate class for collecting value and notifying changed value on a property.
Parameters
flow
A flow for providing data.
coroutineScope
A CoroutineScope where the collecting should be lunched.
defaultValue
A default value for initializing the property value before flow emitting.
Constructors
FlowBindingPropertyIdWithDefaultValueOnScope
Link copied to clipboard
fun <T> FlowBindingPropertyIdWithDefaultValueOnScope(flow: Flow<T>, coroutineScope: CoroutineScope, defaultValue: T)
Content copied to clipboard
A flow for providing data.
Types
Functions
provideDelegate
Link copied to clipboard
operator fun provideDelegate(bindingObservable: BindingObservable, property: KProperty<*>): FlowBindingPropertyIdWithDefaultValueOnScope.Delegate<T>
Content copied to clipboard