android-components / mozilla.components.lib.state.ext / observeForever

observeForever

fun <S : State, A : Action> Store<S, A>.observeForever(observer: Observer<S>): Unit (source)

Registers an Observer function that will observe the store indefinitely.

Right after registering the Observer will be invoked with the current State.