conflateAsState

inline fun <T> conflateAsState(defaultValue: T): State<T>

Provides a single State from the eventBus for the given class type.

Developers should use this to retrieve result updates as State.

Parameters

defaultValue

the default value for the state when none is available.

Type Parameters

T

the type for the result to be returned as State.


fun <T> conflateAsState(resultKey: String, defaultValue: T): State<T>

Provides a single State from the eventBus for the given class type.

Developers should use this to retrieve result updates as State.

Parameters

resultKey

the key for the State that will be returned.

defaultValue

the default value for the state when none is available.

Type Parameters

T

the type of the State return for the result.