NavigationArrival record

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed record NavigationArrival : IEquatable<NavigationArrival>

Inherits or implements IEquatable.

Describes an entry becoming current: a retained entry resuming (INavigationResume.ResumeAsync, INavigationAware.OnNavigatedTo), or a new entry's first commit (INavigationAware.OnNavigatedTo).

Parameters

Entry

The entry that becomes current.

Operation

The operation that makes it current: NavigationOperation.Back or NavigationOperation.BackTo for a resume; NavigationOperation.Push, NavigationOperation.Replace or NavigationOperation.Reset for a new entry. An initial target of RunicNavigator.CreateRegion arrives with NavigationOperation.Reset.

Constructors

NavigationArrival

public NavigationArrival(NavigationEntryId Entry, NavigationOperation Operation)

Describes an entry becoming current: a retained entry resuming (INavigationResume.ResumeAsync, INavigationAware.OnNavigatedTo), or a new entry's first commit (INavigationAware.OnNavigatedTo).

Parameters

Entry

The entry that becomes current.

Operation

The operation that makes it current: NavigationOperation.Back or NavigationOperation.BackTo for a resume; NavigationOperation.Push, NavigationOperation.Replace or NavigationOperation.Reset for a new entry. An initial target of RunicNavigator.CreateRegion arrives with NavigationOperation.Reset.

Properties

Entry

public NavigationEntryId Entry { get; init; }

The entry that becomes current.

Operation

public NavigationOperation Operation { get; init; }