In `Nav3`, how do I block back press while in some...
# compose
u
In
Nav3
, how do I block back press while in some state (
state.isProcessing == true
) in the screen?
w
It's the same as Nav2, use
BackHandler
or the new
NavigationEventHandler
.
You could also manually block it by preventing changes to the backstack, since you fully control the list now.
u
well, then root composable containing navdisplay would need to know aby the child's processing, which can be tricky I guess but okay `BackHandler`thanks!