Table of Contents

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

navigationService INavigationService

The navigation service.

intent AwaitableIntent

The intent to be resolved.

Returns

Task

A task which completes when TPage is removed from the navigation stack.

Type Parameters

TPage

The page/page model responsible for resolving the intent.

Exceptions

Exception

May throw an exception if TPage chose 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

navigationService INavigationService

The navigation service.

intent AwaitableIntent<TResult>

The intent to be resolved.

Returns

Task<TResult>

A task which completes when TPage is removed from the navigation stack containing the result provided via SetResult(T) or default(TResult) when not provided.

Type Parameters

TPage

The page/page model responsible for resolving the intent.

TResult

The 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 TPage chose to fault the intent.