Skip to main content

NavHostWithDialogs

Function NavHostWithDialogs 

Source
pub fn NavHostWithDialogs<R, D, F>(
    __arg0: NavController<R>,
    __arg1: AnimationType,
    __arg2: D,
    __arg3: F,
)
where R: Clone + PartialEq + 'static, D: Fn(&R) -> Option<DialogSpec> + 'static, F: FnMut(R) + 'static,
Expand description

NavHostWith where dialog gives the routes that show as dialogs their DialogSpec — Compose’s dialog(route) destinations.

A dialog entry shows in a Dialog over the screen beneath it, which stays composed; dialogs above one another stack. Dismissing a dialog, by the back gesture or a tap outside when its spec allows, pops it and the entries above it. A dialog entry has its own view model store and saved state, as a screen has.