ActivityNavigator
open class ActivityNavigator : Navigator<ActivityNavigator.Destination!>
kotlin.Any | ||
↳ | androidx.navigation.Navigator<androidx.navigation.ActivityNavigator.Destination> | |
↳ | androidx.navigation.ActivityNavigator |
ActivityNavigator implements cross-activity navigation.
Summary
Nested classes | |
---|---|
open |
NavDestination for activity navigation |
Extras that can be passed to ActivityNavigator to customize what |
Public constructors | |
---|---|
Public methods | |
---|---|
open static Unit |
applyPopAnimationsToPendingTransition(@NonNull : Activity) Apply any pop animations in the Intent of the given Activity to a pending transition. |
open ActivityNavigator.Destination | |
open NavDestination? |
navigate(@NonNull : ActivityNavigator.Destination, @Nullable : Bundle?, @Nullable : NavOptions?, @Nullable : Navigator.Extras?) |
open Boolean |
Inherited functions | |
---|---|
Public constructors
<init>
ActivityNavigator(@NonNull : Context)
Public methods
applyPopAnimationsToPendingTransition
open static fun applyPopAnimationsToPendingTransition(@NonNull : Activity): Unit
Apply any pop animations in the Intent of the given Activity to a pending transition. This should be used in place of Activity#overridePendingTransition(int, int)
to get the appropriate pop animations.
Parameters | |
---|---|
activity |
Activity: An activity started from the ActivityNavigator . |
createDestination
@NonNull open fun createDestination(): ActivityNavigator.Destination
navigate
@Nullable open fun navigate(
@NonNull : ActivityNavigator.Destination,
@Nullable : Bundle?,
@Nullable : NavOptions?,
@Nullable : Navigator.Extras?
): NavDestination?
popBackStack
open fun popBackStack(): Boolean