PendAndRedirectTo

data class PendAndRedirectTo(val route: String, val metadata: Map<String, String> = emptyMap(), val displayHint: String? = null) : GuardResult(source)

Store the original navigation as a PendingNavigation in state, then redirect.

The pending navigation can be resumed after authentication via navigation { clearBackStack(); resumePendingNavigation() }.

Parameters

route

The route to redirect to when guard denies access

metadata

Arbitrary string key-value pairs stored with the pending navigation

displayHint

Optional human-readable hint shown during the auth flow

Constructors

Link copied to clipboard
constructor(navigatable: Navigatable, metadata: Map<String, String> = emptyMap(), displayHint: String? = null)

Store the original navigation and redirect to a typed screen.

constructor(route: String, metadata: Map<String, String> = emptyMap(), displayHint: String? = null)

Properties

Link copied to clipboard
val displayHint: String? = null
Link copied to clipboard
Link copied to clipboard