BlocContext

interface BlocContext : LifecycleOwner

Each Bloc receives a BlocContext.

Right now, the context only contains a Lifecycle object which is managed by the caller and determines when a Bloc starts, stops and is destroyed.

Future versions of the BlocContext might have more properties / settings.

Properties

Link copied to clipboard
abstract val lifecycle: Lifecycle