FlowBindingPropertyIdWithDefaultValueOnScope

class FlowBindingPropertyIdWithDefaultValueOnScope<T>(flow: Flow<T>, coroutineScope: CoroutineScope, 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.

coroutineScope

A CoroutineScope where the collecting should be lunched.

defaultValue

A default value for initializing the property value before flow emitting.

Constructors

fun <T> FlowBindingPropertyIdWithDefaultValueOnScope(flow: Flow<T>, coroutineScope: CoroutineScope, defaultValue: T)
A flow for providing data.

Types

Delegate
Link copied to clipboard
class Delegate<T>(value: T, coroutineScope: CoroutineScope, 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(bindingObservable: BindingObservable, property: KProperty<*>): FlowBindingPropertyIdWithDefaultValueOnScope.Delegate<T>
toString
Link copied to clipboard
open fun toString(): String