Package-level declarations
Types
Link copied to clipboard
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.
Link copied to clipboard
Navigation destinations owned by TimeCapsule.
Link copied to clipboard
Contract implemented by a screen's state holder (typically a ViewModel) so its state history can be recorded and restored by the TimeCapsule module.
Functions
Link copied to clipboard
fun <S : Any> TimeCapsuleEffect(owner: TimeCapsuleOwner<S>, label: (S) -> String = { it.toString() }, subtitle: String? = null, maxEntries: Int = TimeCapsule.DEFAULT_MAX_ENTRIES)
Records owner's state history for as long as this composable stays in composition, and exposes it to the TimeCapsule module for inspection and restore.
fun <S : Any> TimeCapsuleEffect(owner: TimeCapsuleOwner<S>, textFields: List<KProperty1<S, TextFieldState>>, label: (S) -> String = { it.toString() }, subtitle: String? = null, maxEntries: Int = TimeCapsule.DEFAULT_MAX_ENTRIES)
Records screen state and the text and selection of explicitly declared TextFieldState properties, including edits that do not emit a new TimeCapsuleOwner.state.