Share via


TaskStackBuilder.AddNextIntentWithParentStack(Intent) Method

Definition

Add a new Intent with the resolved chain of parents for the target activity to the task stack.

[Android.Runtime.Register("addNextIntentWithParentStack", "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;", "GetAddNextIntentWithParentStack_Landroid_content_Intent_Handler")]
public virtual Android.App.TaskStackBuilder? AddNextIntentWithParentStack (Android.Content.Intent? nextIntent);
[<Android.Runtime.Register("addNextIntentWithParentStack", "(Landroid/content/Intent;)Landroid/app/TaskStackBuilder;", "GetAddNextIntentWithParentStack_Landroid_content_Intent_Handler")>]
abstract member AddNextIntentWithParentStack : Android.Content.Intent -> Android.App.TaskStackBuilder
override this.AddNextIntentWithParentStack : Android.Content.Intent -> Android.App.TaskStackBuilder

Parameters

nextIntent
Intent

Intent for the topmost Activity in the synthesized task stack. Its chain of parents as specified in the manifest will be added.

Returns

This TaskStackBuilder for method chaining.

Attributes

Remarks

Add a new Intent with the resolved chain of parents for the target activity to the task stack.

This is equivalent to calling #addParentStack(ComponentName) addParentStack with the resolved ComponentName of nextIntent (if it can be resolved), followed by #addNextIntent(Intent) addNextIntent with nextIntent.

Java documentation for android.app.TaskStackBuilder.addNextIntentWithParentStack(android.content.Intent).

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