Class RouteBlockerManager
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Coordinates the navigation Blockers registered with a Router.
public sealed class RouteBlockerManager
- Inheritance
-
objectRouteBlockerManager
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.