TaskStackBuilder.AddParentStack Method

Definition

Overloads

Name Description
AddParentStack(Activity)

Add the activity parent chain as specified by the getParentActivityIntent() method of the activity specified and the parentActivityName attributes of each successive activity (or activity-alias) element in the application's manifest to the task stack builder.

AddParentStack(ComponentName)

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

AddParentStack(Class)

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

AddParentStack(Activity)

Add the activity parent chain as specified by the getParentActivityIntent() method of the activity specified and the parentActivityName attributes of each successive activity (or activity-alias) element in the application's manifest to the task stack builder.

[Android.Runtime.Register("addParentStack", "(Landroid/app/Activity;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Landroid_app_Activity_Handler")]
public virtual Android.App.TaskStackBuilder? AddParentStack(Android.App.Activity? sourceActivity);
[<Android.Runtime.Register("addParentStack", "(Landroid/app/Activity;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Landroid_app_Activity_Handler")>]
abstract member AddParentStack : Android.App.Activity -> Android.App.TaskStackBuilder
override this.AddParentStack : Android.App.Activity -> Android.App.TaskStackBuilder

Parameters

sourceActivity
Activity

Activity: All parents of this activity will be added

Returns

This TaskStackBuilder for method chaining

Attributes

Remarks

Add the activity parent chain as specified by the getParentActivityIntent() method of the activity specified and the parentActivityName attributes of each successive activity (or activity-alias) element in the application's manifest to the task stack builder.

Android reference for android.app.TaskStackBuilder.addParentStack.

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

AddParentStack(ComponentName)

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

[Android.Runtime.Register("addParentStack", "(Landroid/content/ComponentName;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Landroid_content_ComponentName_Handler")]
public virtual Android.App.TaskStackBuilder? AddParentStack(Android.Content.ComponentName? sourceActivityName);
[<Android.Runtime.Register("addParentStack", "(Landroid/content/ComponentName;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Landroid_content_ComponentName_Handler")>]
abstract member AddParentStack : Android.Content.ComponentName -> Android.App.TaskStackBuilder
override this.AddParentStack : Android.Content.ComponentName -> Android.App.TaskStackBuilder

Parameters

sourceActivityName
ComponentName

ComponentName: Must specify an Activity component. All parents of this activity will be added

Returns

This TaskStackBuilder for method chaining

Attributes

Remarks

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

Android reference for android.app.TaskStackBuilder.addParentStack.

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

AddParentStack(Class)

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

[Android.Runtime.Register("addParentStack", "(Ljava/lang/Class;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Ljava_lang_Class_Handler")]
public virtual Android.App.TaskStackBuilder? AddParentStack(Java.Lang.Class? sourceActivityClass);
[<Android.Runtime.Register("addParentStack", "(Ljava/lang/Class;)Landroid/app/TaskStackBuilder;", "GetAddParentStack_Ljava_lang_Class_Handler")>]
abstract member AddParentStack : Java.Lang.Class -> Android.App.TaskStackBuilder
override this.AddParentStack : Java.Lang.Class -> Android.App.TaskStackBuilder

Parameters

sourceActivityClass
Class

Class: All parents of this activity will be added

Returns

This TaskStackBuilder for method chaining

Attributes

Remarks

Add the activity parent chain as specified by the parentActivityName attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.

Android reference for android.app.TaskStackBuilder.addParentStack.

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