Package-level declarations
Types
Build context for buildOnViewModel.
A SimpleCoroutineLauncher that launches coroutines in the STARTED
state.
A StateFlowStore that wraps a SavedStateHandle.
The wrapper ViewModel used by buildOnViewModel.
Properties
Returns a StateFlowStore where you can put your saved instance state.
Functions
Creates a ViewModel
with a SavedStateHandleStore, scoped to the Activity
.
Creates a ViewModel
with a SavedStateHandle
, scoped to the Activity
.
Watches observables for changes. Often useful to keep things in sync (e.g. ViewModel -> UI).
Watches observables for changes. Often useful to keep things in sync.
Creates an object living on a wrapper ViewModel
. This allows for building multiplatform ViewModels.
Creates an object living on a wrapper ViewModel. This allows for building multiplatform ViewModels.
Used internally by buildOnViewModel.
Creates a ViewModel
.
Watches observables for changes. Often useful to keep things in sync.
Watches observables for changes. Often useful to keep things in sync (e.g. ViewModel -> UI).
Creates a StateFlow that computes its value based on other StateFlows via an autoRun block.
Creates a StateFlow that computes its value based on other StateFlows via a suspendable coAutoRun block.
Consumes and handles EventNotifier's events on the given handler, but only when owner is in >=STARTED state.
A StateFlow that tracks the current Lifecycle.State.
Runs the given block on every Lifecycle.Event.ON_CREATE
.
Runs the given block once on the next Lifecycle.Event.ON_DESTROY
.
Runs the given block on every Fragment.onCreateView
(actually onViewStateRestored
).
Runs the given block once on the next Fragment.onCreateView
(actually onViewStateRestored
).
Runs the given block on every Lifecycle.Event.ON_DESTROY
.
Runs the given block once on the next Lifecycle.Event.ON_DESTROY
.
Runs the given block on every Fragment.onDestroyView
.
Runs the given block once on the next Fragment.onDestroyView
.
Runs the given block on every Lifecycle.Event.ON_PAUSE
.
Runs the given block once on the next Lifecycle.Event.ON_PAUSE
.
Runs the given block on every Lifecycle.Event.ON_RESUME
.
Runs the given block once on the next Lifecycle.Event.ON_RESUME
.
Runs the given block on every Lifecycle.Event.ON_START
.
Runs the given block once on the next Lifecycle.Event.ON_START
.
Runs the given block on every Lifecycle.Event.ON_STOP
.
Runs the given block once on the next Lifecycle.Event.ON_STOP
.
Creates a multiplatform ReactiveState ViewModel and observes its ReactiveState.eventNotifier.
Creates a multiplatform ReactiveViewModel ViewModel.
Returns a StateFlowStore where you can put your saved instance state.
Creates a ViewModel
with a SavedStateHandleStore.
Creates a ViewModel
with a SavedStateHandle
.