android-components / mozilla.components.lib.state.ext / androidx.fragment.app.Fragment

Extensions for androidx.fragment.app.Fragment

Name Summary
consumeFrom fun <S : State, A : Action> Fragment.consumeFrom(store: Store<S, A>, block: (S) -> Unit): Unit
Helper extension method for consuming State from a Store sequentially in order inside a Fragment. The block function will get invoked for every State update.