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

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.

Types

Name Summary
Binding interface Binding

Functions

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.