Table of Contents

Class RouteBlockerManager

Namespace
Velvet
Assembly
Velvet.Docs.dll

Coordinates the navigation Blockers registered with a Router.

public sealed class RouteBlockerManager
Inheritance
object
RouteBlockerManager

Methods

Register(Func<NavigationAttempt, bool>, RouteBlockerState)

Disposing stops future predicate checks. An already Blocked state remains answerable until its attempt settles.

Register(Func<NavigationAttempt, CancellationToken, VelvetTask<bool>>, RouteBlockerState)

Disposing stops future predicate checks. An already Blocked state remains answerable until its attempt settles.

ResetAllBlocked()

Clears Blocked entries without rearming entries that already released the attempt.