In package com.nhaarman.acorn.android.navigation
class com.nhaarman.acorn.android.navigation.NavigatorProvider
An interface that provides a Navigator instance to be used in the Activity.
Implementations generally need to cache a created Navigator to deliver the same instance to multiple Activities.
Methods
Returns the Navigator instance to work with. If one needs to be created, given savedState can be used to restore any state, if applicable.
-
savedState: NavigatorState?
If not null, the saved state for the Navigator as returned by saveNavigatorState.
Unlike navigatorFor, this function should always return a new Navigator instance.
-
savedState: NavigatorState?
If not null, the saved state for the Navigator as returned by saveNavigatorState.
Returns the saved state for the Navigator as returned by navigatorFor. Implementations can add extra data to the resulting state to suit their needs.
- No parameters