Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

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 ActivityOptionsCompat and flags are passed through to the call to ActivityCompat#startActivity(Context, Intent, Bundle).

Public constructors
<init>(@NonNull context: Context)

Public methods
open static Unit

Apply any pop animations in the Intent of the given Activity to a pending transition.

open ActivityNavigator.Destination

open NavDestination?
navigate(@NonNull destination: ActivityNavigator.Destination, @Nullable args: Bundle?, @Nullable navOptions: NavOptions?, @Nullable navigatorExtras: Navigator.Extras?)

open Boolean

Inherited functions

Public constructors

<init>

ActivityNavigator(@NonNull context: Context)

Public methods

applyPopAnimationsToPendingTransition

open static fun applyPopAnimationsToPendingTransition(@NonNull activity: 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
@Nullable open fun navigate(
    @NonNull destination: ActivityNavigator.Destination,
    @Nullable args: Bundle?,
    @Nullable navOptions: NavOptions?,
    @Nullable navigatorExtras: Navigator.Extras?
): NavDestination?

popBackStack

open fun popBackStack(): Boolean