NavigationAdmission enum

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public enum NavigationAdmission

How a region admits a request while an earlier request of the region runs.

Remarks

This set is open: a minor release may add modes, so handle unknown values, for example with a default arm.

Values

Supersede

Supersede = 0

A later request supersedes the earlier requests of the region that have not started committing.

RejectWhileBusy

RejectWhileBusy = 1

While the region is busy (NavigationRegion.IsBusy), a request is rejected at admission with NavigationRejection.Busy. A Back that can join a pending Back still joins it.

Queue

Queue = 2

A request waits until the earlier requests of the region have ended, in admission order, and supersedes none of them. A second NavigationRegion.PushForResult into a dialog region then pushes its entry above the first once the first has committed, and returning from it resumes the first. A Back that can join a pending Back still joins it.

Remarks

NavigationRequestOptions.ExpectedCurrent and the history a Back needs are checked when a queued request starts, against the state its predecessors left, and again when it commits. The request's token cancels it while it waits (NavigationRejection.Cancelled); the requests queued behind it continue. A later request admitted with NavigationAdmission.Supersede still supersedes queued requests.