Activity.OnCreateNavigateUpTaskStack(TaskStackBuilder) Method

Definition

Define the synthetic task stack that will be generated during Up navigation from a different task.

[Android.Runtime.Register("onCreateNavigateUpTaskStack", "(Landroid/app/TaskStackBuilder;)V", "GetOnCreateNavigateUpTaskStack_Landroid_app_TaskStackBuilder_Handler")]
public virtual void OnCreateNavigateUpTaskStack (Android.App.TaskStackBuilder? builder);
[<Android.Runtime.Register("onCreateNavigateUpTaskStack", "(Landroid/app/TaskStackBuilder;)V", "GetOnCreateNavigateUpTaskStack_Landroid_app_TaskStackBuilder_Handler")>]
abstract member OnCreateNavigateUpTaskStack : Android.App.TaskStackBuilder -> unit
override this.OnCreateNavigateUpTaskStack : Android.App.TaskStackBuilder -> unit

Parameters

builder
TaskStackBuilder

An empty TaskStackBuilder - the application should add intents representing the desired task stack

Attributes

Remarks

Define the synthetic task stack that will be generated during Up navigation from a different task.

The default implementation of this method adds the parent chain of this activity as specified in the manifest to the supplied TaskStackBuilder. Applications may choose to override this method to construct the desired task stack in a different way.

This method will be invoked by the default implementation of #onNavigateUp() if #shouldUpRecreateTask(Intent) returns true when supplied with the intent returned by #getParentActivityIntent().

Applications that wish to supply extra Intent parameters to the parent stack defined by the manifest should override #onPrepareNavigateUpTaskStack(TaskStackBuilder).

Java documentation for android.app.Activity.onCreateNavigateUpTaskStack(android.app.TaskStackBuilder).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to