Sdílet prostřednictvím


Dialog.OwnerActivity Property

Definition

Returns the Activity that owns this Dialog. -or- Sets the Activity that owns this dialog.

public Android.App.Activity? OwnerActivity { [Android.Runtime.Register("getOwnerActivity", "()Landroid/app/Activity;", "")] get; [Android.Runtime.Register("setOwnerActivity", "(Landroid/app/Activity;)V", "")] set; }
[<get: Android.Runtime.Register("getOwnerActivity", "()Landroid/app/Activity;", "")>]
[<set: Android.Runtime.Register("setOwnerActivity", "(Landroid/app/Activity;)V", "")>]
member this.OwnerActivity : Android.App.Activity with get, set

Property Value

The Activity that owns this Dialog.

Attributes

Remarks

Property getter documentation:

Returns the Activity that owns this Dialog. For example, if Activity#showDialog(int) 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.

Java documentation for android.app.Dialog.getOwnerActivity().

Property setter documentation:

Sets the Activity that owns this dialog. An example use: This Dialog will use the suggested volume control stream of the Activity.

Java documentation for android.app.Dialog.setOwnerActivity(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