ActivityNavigator
Implementation of Navigator. Takes a mapper function to map all NavigationAction to a NavigationSpec Whenever navigate is called, this class maps it to a NavigationSpec and performs navigation according to that Requires to be subscribed to an activity via subscribe to work
Parameters
The type of NavigationAction handled by this navigator.
A function mapping the Action to NavigationSpec
Properties
The current LifecycleManager subscribed to this LifecycleSubscribable
Functions
Triggers a given NavigationAction
Triggers a given NavigationAction or executes a closure if the navigation failed to complete.
Triggers a given NavigationAction and returns true
if it succeeded.
Subscribes a LifecycleManager to this LifecycleSubscribable. Called on Lifecycle.Event.ON_CREATE
Convenience method to subscribe an AppCompatActivity to this ActivityLifecycleSubscribable using its default LifecycleOwner and FragmentManager.
Convenience method to subscribe a Fragment to this ActivityLifecycleSubscribable using its default LifecycleOwner and FragmentManagers.
Subscribes a LifecycleOwner to this ActivityLifecycleSubscribable.
Unsubscribes the current LifecycleManager from this LifecycleSubscribable. Called on Lifecycle.Event.ON_DESTROY