FlowBindingPropertyIdWithDefaultValue

class FlowBindingPropertyIdWithDefaultValue<T>(flow: Flow<T>, defaultValue: T)

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)
A flow for providing data.

Types

Delegate
Link copied to clipboard
class Delegate<T>(value: T, bindingId: Int)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
provideDelegate
Link copied to clipboard
operator fun provideDelegate(bindingViewModel: BindingViewModel, property: KProperty<*>): FlowBindingPropertyIdWithDefaultValue.Delegate<T>
toString
Link copied to clipboard
open fun toString(): String