Package-level declarations
Types
Tells a screen that the transition bringing it in is far enough along for its entrance to begin, so its content arrives as the screen lands rather than after it. reached is read inside a snapshot, so it should read state. The shell provides one for each page and tab.
When a screen's entrance plays. None of them replays it on returning from the background, on a rotation, or for an item scrolled back into view within the visit.
The status of one piece of content that loads: the Toolkit's default, used as a field of a screen's state rather than for the whole screen.
A ScreenViewModel that reports to Firebase: a breadcrumb when it is created and for every event, and for each operation a start breadcrumb and vm_op_start event, and on failure an error breadcrumb, a vm_op_error event and a Crashlytics report.
How an app draws loading, empty and failed content, and how one case replaces another. Every ScreenStateHandler and StateContent follows the nearest LocalScreenStates, so an app sets its own once around its content and every screen follows; a single section passes its own onLoading, onEmpty or onError instead.
What a ScreenStateHandler knows when it draws a case other than Loadable.Ready.
A status that ScreenHost reports in the screen_state analytics event.
Properties
The text every screen shows for a failure it has nothing more specific to say about.
Whether trying the same operation again can succeed.
The EntranceCue of the screen here. Without one, a screen's entrance begins once it is resumed, its transition over.
The app's EntranceReplay, EntranceReplay.OnOpen unless the app picks another. The shell provides the app's choice, appToolkitDefaults { shell { entranceReplay = ... } }, or the one picked in the developer options.
How many times the screen here has been opened again while it stayed in its back stack, such as a tab picked again from the navigation bar or rail. The shell provides it around each tab's screens. When it changes, EntranceReplay.OnOpen plays the screen's entrance again; going back to the screen leaves it as it is, so it does not.
The ScreenStates screens draw with here.
Functions
Shows viewModel's queued messages, one at a time and in order, and tells it as each leaves.
Posts queued messages as toasts when a sheet would cover the page's snackbar. Toasts have no actions.
The boundary of one screen: reports each visit to it, reports its status, and shows its ViewModel's messages. Every screen, tab, page, sheet or pane with a screen name of its own is wrapped in one.
Draws state, animating between its cases with the app's ScreenStates.
ScreenStateHandler with an ImageVector icon.
Draws state with content, animating with transition when its case changes.
This failure as the Loadable.Failed state of a screen's content: toUiText with fallback, and a retry when retryable.