NavigationRestoreOptions record

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed record NavigationRestoreOptions : IEquatable<NavigationRestoreOptions>

Inherits or implements IEquatable.

Configures RunicNavigator.RestoreAsync and the region and selection restores.

Remarks

A saved path is application data from an earlier run, possibly of another version of the application. Store the application's version next to the path, and discard a path that another version wrote rather than restoring it: its routes, and the order in which owners create their regions, may differ.

Constructors

NavigationRestoreOptions

public NavigationRestoreOptions()

No documentation.

Properties

MaximumEntriesPerRegion

public int MaximumEntriesPerRegion { get; init; }

Gets how many entries of one region are restored at most; 256 by default. Later ones are left out.

MaximumRegionsPerSelection

public int MaximumRegionsPerSelection { get; init; }

Gets how many regions of one selection, such as tabs, are restored at most; 256 by default. Later ones are left out.

Routes

public INavigationRouteMap? Routes { get; init; }

Gets the route map, or null (the default) for the INavigationRouteMap of the navigator's services.

UnmappedEntries

public NavigationUnmappedEntries UnmappedEntries { get; init; }

Gets what an entry that no route matches does; NavigationUnmappedEntries.Stop by default.