NavigationPage.setCanPop

void setCanPop(bool canPop)

Sets whether self can be popped from navigation stack.

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

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

See propertyHeaderBar:show-back-button for removing only the back button, but not shortcuts.

Parameters

canPopwhether the page can be popped from navigation stack