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 val icon: ImageVector
Link copied to clipboard
open val moduleName: String
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 val subtitle: String?

Functions

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