android-components / mozilla.components.lib.state / Store / Subscription


class Subscription<S : State, A : Action> (source)

A Subscription is returned whenever an observer is registered via the observeManually method. Calling unsubscribe on the Subscription will unregister the observer.


Name Summary
Binding interface Binding


Name Summary
pause fun pause(): Unit
Pauses the Subscription. The Observer will not get notified when the state changes until resume is called.
resume fun resume(): Unit
Resumes the Subscription. The Observer will get notified for every state change. Additionally it will get invoked immediately with the latest state.
unsubscribe fun unsubscribe(): Unit
Unsubscribe from the Store.