TaskStackBuilder.AddParentStack Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddParentStack(Activity) |
Add the activity parent chain as specified by the
|
AddParentStack(ComponentName) |
Add the activity parent chain as specified by the
|
AddParentStack(Class) |
Add the activity parent chain as specified by the
|
AddParentStack(Activity)
Add the activity parent chain as specified by the
Activity#getParentActivityIntent() getParentActivityIntent()
method of the activity
specified and the android.R.attr#parentActivityName 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
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 Activity#getParentActivityIntent() getParentActivityIntent()
method of the activity specified and the android.R.attr#parentActivityName parentActivityName
attributes of each successive activity (or activity-alias) element in the application's manifest to the task stack builder.
Java documentation for android.app.TaskStackBuilder.addParentStack(android.app.Activity)
.
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
android.R.attr#parentActivityName 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
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 android.R.attr#parentActivityName parentActivityName
attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.
Java documentation for android.app.TaskStackBuilder.addParentStack(android.content.ComponentName)
.
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
android.R.attr#parentActivityName 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
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 android.R.attr#parentActivityName parentActivityName
attribute of the activity (or activity-alias) element in the application's manifest to the task stack builder.
Java documentation for android.app.TaskStackBuilder.addParentStack(java.lang.Class<?>)
.
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.