-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5759a7b
commit 6cb895b
Showing
5 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Source/Nalu.Maui.Navigation/Interfaces/NavigationIntentBehavior.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Nalu; | ||
|
||
/// <summary> | ||
/// Defines how lifecycle events are triggered when a navigation intent is detected. | ||
/// </summary> | ||
public enum NavigationIntentBehavior | ||
{ | ||
/// <summary> | ||
/// When a navigation intent is detected, only intent-related navigation lifecycle events will be triggered. | ||
/// </summary> | ||
/// <example> | ||
/// In the following example, if <c>MyIntent</c> is detected, the navigation will invoke only <c>OnAppearingAsync(MyIntent)</c>. | ||
/// <code> | ||
/// public ValueTask OnEnteringAsync() | ||
/// public ValueTask OnAppearingAsync(MyIntent) | ||
/// </code> | ||
/// </example> | ||
Strict, | ||
|
||
/// <summary> | ||
/// When a navigation intent is detected, if the corresponding intent-related navigation lifecycle event is not defined, the navigation will fall through to the generic one. | ||
/// </summary> | ||
/// <example> | ||
/// In the following example, if <c>MyIntent</c> is detected, the navigation will invoke <c>OnEnteringAsync</c> and <c>OnAppearingAsync(MyIntent)</c> in sequence. | ||
/// <code> | ||
/// public ValueTask OnEnteringAsync() | ||
/// public ValueTask OnAppearingAsync(MyIntent) | ||
/// </code> | ||
/// </example> | ||
Fallthrough, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters