TimeCapsule

DevView module that shows the state history of whichever screen is currently recording via TimeCapsuleEffect, and lets a developer restore any earlier state into it.

Only one screen records at a time — whichever is topmost in the host app's own navigation — and its history resets whenever that screen leaves composition.

Integration

val modules = rememberModules {
module(module = TimeCapsule)
}

See also

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val DEFAULT_MAX_ENTRIES: Int = 50

Default number of retained entries when none is specified to TimeCapsuleEffect.

Link copied to clipboard
open override val destinations: PersistentMap<KClass<out NavKey>, DestinationMetadata>
Link copied to clipboard
open override val entryDestination: NavKey
Link copied to clipboard
open override val icon: ImageVector

Icon identifying this module on the home screen.

Link copied to clipboard
open override val moduleName: String

Name displayed on the home screen and default destination toolbar.

Link copied to clipboard
open override val registerSerializers: PolymorphicModuleBuilder<NavKey>.() -> Unit
Link copied to clipboard
open override val section: Section
Link copied to clipboard
open override val subtitle: String

Summary displayed on the home screen.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun EntryProviderScope<NavKey>.registerContent(onNavigateBack: () -> Unit, onNavigate: (NavKey) -> Unit, bottomPadding: Dp)