Class NaluNavigationServiceExtensions
- Namespace
 - Nalu
 
- Assembly
 - Nalu.Maui.Navigation.dll
 
Syntax sugar extensions for the INavigationService
public static class NaluNavigationServiceExtensions
  - Inheritance
 - 
      
      NaluNavigationServiceExtensions
 
- Inherited Members
 
Methods
ResolveIntentAsync<TPage>(INavigationService, AwaitableIntent)
Pushes TPage via RelativeNavigation to resolve the given intent.
public static Task ResolveIntentAsync<TPage>(this INavigationService navigationService, AwaitableIntent intent) where TPage : class
  Parameters
navigationServiceINavigationServiceThe navigation service.
intentAwaitableIntentThe intent to be resolved.
Returns
- Task
 A task which completes when
TPageis removed from the navigation stack.
Type Parameters
TPageThe page/page model responsible for resolving the intent.
Exceptions
- Exception
 May throw an exception if
TPagechose to fault the intent.
ResolveIntentAsync<TPage, TResult>(INavigationService, AwaitableIntent<TResult>)
Pushes TPage via RelativeNavigation to resolve the given intent.
public static Task<TResult> ResolveIntentAsync<TPage, TResult>(this INavigationService navigationService, AwaitableIntent<TResult> intent) where TPage : class
  Parameters
navigationServiceINavigationServiceThe navigation service.
intentAwaitableIntent<TResult>The intent to be resolved.
Returns
- Task<TResult>
 A task which completes when
TPageis removed from the navigation stack containing the result provided via SetResult(T) or default(TResult) when not provided.
Type Parameters
TPageThe page/page model responsible for resolving the intent.
TResultThe return type.
Remarks
It is expected that TPage resolves the intent via SetResult(T) or marks it as faulty via SetException(Exception).
When the intent is not resolved, the task will complete with default(TResult).
Exceptions
- Exception
 May throw an exception if
TPagechose to fault the intent.