-
public class ActivityHostedRouter extends Router
-
-
Method Summary
Modifier and Type Method Description final voidsetHost(@NonNull() LifecycleHandler lifecycleHandler, @NonNull() ViewGroup container)voidsaveInstanceState(@NonNull() Bundle outState)voidrestoreInstanceState(@NonNull() Bundle savedInstanceState)ActivitygetActivity()Returns this Router's host Activity or {@code null}if it has either not yet been attached toan Activity or if the Activity has been destroyed.voidonActivityDestroyed(@NonNull() Activity activity, boolean isConfigurationChange)final voidinvalidateOptionsMenu()voidonActivityResult(int requestCode, int resultCode, @Nullable() Intent data)This should be called by the host Activity when its onActivityResult method is called if the instanceIdof the controller that called startActivityForResult is not known. voidonContextAvailable()-
Methods inherited from class com.bluelinelabs.conductor.Router
addChangeListener, getBackstack, getBackstackSize, getContainerId, getControllerWithInstanceId, getControllerWithTag, handleBack, handleRequestedPermission, hasRootController, onActivityPaused, onActivityResult, onActivityResumed, onActivityStarted, onActivityStopped, onCreateOptionsMenu, onOptionsItemSelected, onPrepareOptionsMenu, onRequestPermissionsResult, popController, popCurrentController, popToRoot, popToRoot, popToTag, popToTag, prepareForHostDetach, pushController, rebindIfNeeded, removeChangeListener, replaceTopController, setBackstack, setPopRootControllerMode, setPopsLastView, setRoot -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setHost
final void setHost(@NonNull() LifecycleHandler lifecycleHandler, @NonNull() ViewGroup container)
-
saveInstanceState
void saveInstanceState(@NonNull() Bundle outState)
-
restoreInstanceState
void restoreInstanceState(@NonNull() Bundle savedInstanceState)
-
getActivity
@Nullable() Activity getActivity()
Returns this Router's host Activity or
{@code null}if it has either not yet been attached toan Activity or if the Activity has been destroyed.
-
onActivityDestroyed
void onActivityDestroyed(@NonNull() Activity activity, boolean isConfigurationChange)
-
invalidateOptionsMenu
final void invalidateOptionsMenu()
-
onActivityResult
void onActivityResult(int requestCode, int resultCode, @Nullable() Intent data)
This should be called by the host Activity when its onActivityResult method is called if the instanceIdof the controller that called startActivityForResult is not known.
- Parameters:
requestCode- The Activity's onActivityResult requestCoderesultCode- The Activity's onActivityResult resultCodedata- The Activity's onActivityResult data
-
onContextAvailable
void onContextAvailable()
-
-
-
-