AnyHydratedBloc

interface AnyHydratedBloc

Type-erased interface for HydratedBloc operations that need to work without knowledge of the concrete state and event type parameters.

Used internally by BlocRegistry.resetAllHydrated to reset every registered HydratedBloc without needing to cast to HydratedBloc<*, *>.

Inheritors

Functions

Link copied to clipboard
abstract fun clearStoredState()

Deletes the persisted state without changing the current in-memory state.

Link copied to clipboard
abstract fun resetToInitialState()

Deletes the persisted state and immediately emits initialState, resetting both storage and the live UI in one call.