Flow Binding Property Id With Default Value
class FlowBindingPropertyIdWithDefaultValue<T>(flow: Flow<T>, 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.
defaultValue
A default value for initializing the property value before flow emitting.
Constructors
FlowBindingPropertyIdWithDefaultValue
Link copied to clipboard
fun <T> FlowBindingPropertyIdWithDefaultValue(flow: Flow<T>, defaultValue: T)
Content copied to clipboard
A flow for providing data.
Types
Functions
provideDelegate
Link copied to clipboard
operator fun provideDelegate(bindingViewModel: BindingViewModel, property: KProperty<*>): FlowBindingPropertyIdWithDefaultValue.Delegate<T>
Content copied to clipboard