-
Notifications
You must be signed in to change notification settings - Fork 8
Fallback
kyleduo edited this page Mar 12, 2018
·
3 revisions
When Rabbits can not find a page that matches the given url, a fallback is necessary. You can register a FallbackNavigator when initialize Rabbits like this.
registerFallbackNavigator(new Navigator() {
@Override
public RabbitResult perform(Action action) {
//
}
});
You may want to navigate to a web browser to load target url or tell user the url is broken, it’s up to you. All the information about current navigation can be found in the Action instance.