Language

Activity.Parent Property

Definition

Returns the parent Activity if this is a child Activity of an ActivityGroup.

public Android.App.Activity? Parent { [Android.Runtime.Register("getParent", "()Landroid/app/Activity;", "")] get; }
[<get: Android.Runtime.Register("getParent", "()Landroid/app/Activity;", "")>]
member this.Parent : Android.App.Activity

Property Value

The parent activity, or null if this activity has no parent.

Attributes

Remarks

This method was deprecated in API level 35. ActivityGroup is deprecated.

Returns the parent Activity if this is a child Activity of an ActivityGroup.

Android reference for android.app.Activity.getParent.

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