Class SystemNavigationRouteDecisionHandler
-
- All Implemented Interfaces:
-
io.github.angularwave.android.navigation.routing.Router.RouteDecisionHandler
public final class SystemNavigationRouteDecisionHandler implements Router.RouteDecisionHandler
Opens external urls via a new Activity intent. Non-HTTP/S schemes are supported.
-
-
Constructor Summary
Constructors Constructor Description SystemNavigationRouteDecisionHandler()
-
Method Summary
Modifier and Type Method Description StringgetName()The decision handler name used in debug logging. Booleanmatches(String location, NavigatorConfiguration configuration)Determines whether the location matches this decision handler. Router.Decisionhandle(String location, NavigatorConfiguration configuration, AngularNativeActivity activity)Handle custom routing behavior when a match is found. -
-
Method Detail
-
matches
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
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.
-
-
-
-