RouteCache

class RouteCache(dataStore: DataStore<Preferences>, coroutineScope: CoroutineScope)

Routes are large and expensive objects, so we don't want to pass them between screens/navigation destinations serialised into arguments. This cache mainly acts as a place to store routes, allowing us to only pass around signatures

Constructors

Link copied to clipboard
fun RouteCache(dataStore: DataStore<Preferences>, coroutineScope: CoroutineScope)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun getRoute(handle: StoredRouteHandle): Route?
Link copied to clipboard
fun putRoute(route: Route): StoredRouteHandle