Android Guides | Samples

Android.App.Dialog.OwnerActivity Property

Returns the Activity that owns this Dialog.


[get: Android.Runtime.Register("getOwnerActivity", "()Landroid/app/Activity;", "GetGetOwnerActivityHandler")]
[set: Android.Runtime.Register("setOwnerActivity", "(Landroid/app/Activity;)V", "GetSetOwnerActivity_Landroid_app_Activity_Handler")]
public Activity OwnerActivity { get; set; }


Get method documentation[Android Documentation]
Returns the Activity that owns this Dialog. For example, if Activity.ShowDialog(Int32) is used to show this Dialog, that Activity will be the owner (by default). Depending on how this dialog was created, this may return null.

Set method documentation[Android Documentation]
Sets the Activity that owns this dialog. An example use: This Dialog will use the suggested volume control stream of the Activity.


Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 1