Interface Router.RouteDecisionHandler
-
- All Implemented Interfaces:
public interface Router.RouteDecisionHandlerAn interface to implement to provide custom route decision handling behaviors in your app.
-
-
Method Summary
Modifier and Type Method Description abstract Booleanmatches(String location, NavigatorConfiguration configuration)Determines whether the location matches this decision handler. abstract Router.Decisionhandle(String location, NavigatorConfiguration configuration, AngularNativeActivity activity)Handle custom routing behavior when a match is found. abstract StringgetName()The decision handler name used in debug logging. -
-
Method Detail
-
matches
abstract Boolean matches(String location, NavigatorConfiguration configuration)
Determines whether the location matches this decision handler. Use your own custom rules based on the location's domain, protocol, path, or any other factors.
-
handle
abstract Router.Decision handle(String location, NavigatorConfiguration configuration, AngularNativeActivity activity)
Handle custom routing behavior when a match is found. To continue with in-app navigation, return Decision.NAVIGATE. To prevent in-app navigation return Decision.CANCEL.
-
-
-
-