public final class Conductor
extends java.lang.Object
Router to your Activity.| Modifier and Type | Method and Description |
|---|---|
static Router |
attachRouter(android.app.Activity activity,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
Conductor will create a
Router that has been initialized for your Activity and containing ViewGroup. |
public static Router attachRouter(android.app.Activity activity, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
Router that has been initialized for your Activity and containing ViewGroup.
If an existing Router is already associated with this Activity/ViewGroup pair, either in memory
or in the savedInstanceState, that router will be used and rebound instead of creating a new one with
an empty backstack.activity - The Activity that will host the Router being attached.container - The ViewGroup in which the Router's Controller views will be hostedsavedInstanceState - The savedInstanceState passed into the hosting Activity's onCreate method. Used
for restoring the Router's state if possible.Router instance for use with this Activity/ViewGroup pair.