supportNavigateUpTo

open fun supportNavigateUpTo(@NonNull upIntent: @NonNull Intent)(source)

Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity in the process. upIntent will have the flag FLAG_ACTIVITY_CLEAR_TOP set by this method, along with any others required for proper up navigation as outlined in the Android Design Guide.

This method should be used when performing up navigation from within the same task as the destination. If up navigation should cross tasks in some cases, see supportShouldUpRecreateTask.

Parameters

upIntent

An intent representing the target destination for up navigation