Table of Contents

Interface ILeavingGuard

Namespace
Nalu
Assembly
Nalu.Maui.Navigation.dll

INavigationService will invoke CanLeaveAsync() method when the page is requested to be removed from the navigation stack.

public interface ILeavingGuard

Methods

CanLeaveAsync()

Invoked when the page is requested to be removed from the navigation stack.

ValueTask<bool> CanLeaveAsync()

Returns

ValueTask<bool>

True to let the page leave, false to stop the navigation.