NavigationOutcome record

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed record NavigationOutcome : IEquatable<NavigationOutcome>

Inherits or implements IEquatable.

A summary of a NavigationResult without its .NET content and exception, so a ViewModel can return it to a Runic View, for example as the output of a back command.

Parameters

Kind

How the request ended.

Rejection

Why the request was rejected, for NavigationOutcomeKind.Rejected; otherwise null.

Constructors

NavigationOutcome

public NavigationOutcome(NavigationOutcomeKind Kind, NavigationRejection? Rejection = null)

A summary of a NavigationResult without its .NET content and exception, so a ViewModel can return it to a Runic View, for example as the output of a back command.

Parameters

Kind

How the request ended.

Rejection

Why the request was rejected, for NavigationOutcomeKind.Rejected; otherwise null.

Properties

Arrival

public NavigationArrivalState Arrival { get; init; }

Gets how the arrival hooks (INavigationArrived) of the entries a NavigationOutcomeKind.Committed transition made current ended, so a page can show that their data failed to load; NavigationArrivalState.None for every other kind. Only the full navigation result carries the exception of a NavigationArrivalState.Failed hook.

Kind

public NavigationOutcomeKind Kind { get; init; }

How the request ended.

Rejection

public NavigationRejection? Rejection { get; init; }

Why the request was rejected, for NavigationOutcomeKind.Rejected; otherwise null.