Package-level declarations

Types

Link copied to clipboard
@Serializable
data object HomeNavKey : NavKey

Top-level destination for the home tab.

Link copied to clipboard
@Serializable
data class ItemNavKey(val itemId: String?) : NavKey

Detail destination for a single item.

Functions

Link copied to clipboard
fun EntryProviderScope<NavKey>.homeEntries(navigator: Navigator, onShowSnackbar: suspend (String, SnackbarAction, Throwable?) -> Boolean)

Registers the home tab's destinations.

Link copied to clipboard
fun Navigator.navigateToHome()

Navigates to the home tab. Re-selecting it pops back to the list.

Link copied to clipboard
fun Navigator.navigateToItem(itemId: String?)

Opens the item screen. Pass null to create a new item.