DomposableEntryScope

class DomposableEntryScope<R : Any>(val route: R, val id: String = Random.nextLong().toString(ENTRY_ID_RADIX), restoredState: Map<String, List<Any?>> = emptyMap())

Route identity, saveable UI state and resource disposal; no model or DI requirements.

Constructors

Link copied to clipboard
constructor(route: R, id: String = Random.nextLong().toString(ENTRY_ID_RADIX), restoredState: Map<String, List<Any?>> = emptyMap())

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
val route: R

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onDispose(callback: () -> Unit)
Link copied to clipboard
fun <T : Any> retain(key: String, dispose: (T) -> Unit = {}, factory: () -> T): T

Used by optional adapters. Applications may build their own ownership helpers.