NavigationPage.canPop

bool canPop() @property

Get canPop property.

Returns

Whether the page can be popped from navigation stack.

Set it to FALSE to disable shortcuts and gestures, as well as remove the back button from adw.header_bar.HeaderBar.

Manually calling adw.navigation_view.NavigationView.pop or using the navigation.pop action will still work.

See adw.header_bar.HeaderBar.showBackButton for removing only the back button, but not shortcuts.

void canPop(bool propval) @property

Set canPop property.

Parameters

propvalWhether the page can be popped from navigation stack. Set it to FALSE to disable shortcuts and gestures, as well as remove the back button from adw.header_bar.HeaderBar. Manually calling adw.navigation_view.NavigationView.pop or using the navigation.pop action will still work. See adw.header_bar.HeaderBar.showBackButton for removing only the back button, but not shortcuts.