Język

Dialog Constructors

Definition

Overloads

Name Description
Dialog(Context)

Creates a dialog window that uses the default dialog theme.

Dialog(Context, Int32)

Creates a dialog window that uses a custom dialog style.

Dialog(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

Dialog(Context, Boolean, IDialogInterfaceOnCancelListener)

Creates a dialog window that uses the default dialog theme.

Dialog(Context, Boolean, EventHandler)

Dialog(Context)

Creates a dialog window that uses the default dialog theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Dialog(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.App.Dialog : Android.Content.Context -> Android.App.Dialog

Parameters

context
Context

the context in which the dialog should run

Attributes

Remarks

Creates a dialog window that uses the default dialog theme. The supplied context is used to obtain the window manager and base theme used to present the dialog.

See also:

Android reference for android.app.Dialog.Dialog.

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

Dialog(Context, Int32)

Creates a dialog window that uses a custom dialog style.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public Dialog(Android.Content.Context context, int themeResId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.App.Dialog : Android.Content.Context * int -> Android.App.Dialog

Parameters

context
Context

the context in which the dialog should run

themeResId
Int32

a style resource describing the theme to use for the window, or 0 to use the default dialog theme

Attributes

Remarks

Creates a dialog window that uses a custom dialog style. The supplied context is used to obtain the window manager and base theme used to present the dialog. The supplied theme is applied on top of the context's theme. See Style and Theme Resources for more information about defining and using styles.

Android reference for android.app.Dialog.Dialog.

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

Dialog(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

protected Dialog(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Dialog : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Dialog

Parameters

javaReference
IntPtr

nativeint

The Java Native Interface object reference.

transfer
JniHandleOwnership

The ownership transfer to apply to the Java Native Interface object reference.

Remarks

This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.

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

Dialog(Context, Boolean, IDialogInterfaceOnCancelListener)

Creates a dialog window that uses the default dialog theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V", "")]
protected Dialog(Android.Content.Context context, bool cancelable, Android.Content.IDialogInterfaceOnCancelListener? cancelListener);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZLandroid/content/DialogInterface$OnCancelListener;)V", "")>]
new Android.App.Dialog : Android.Content.Context * bool * Android.Content.IDialogInterfaceOnCancelListener -> Android.App.Dialog

Parameters

context
Context

Context: This value cannot be null.

cancelable
Boolean

boolean

cancelListener
IDialogInterfaceOnCancelListener

DialogInterface.OnCancelListener: This value may be null.

Attributes

Remarks

Android reference for android.app.Dialog.Dialog.

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

Dialog(Context, Boolean, EventHandler)

protected Dialog(Android.Content.Context context, bool cancelable, EventHandler cancelHandler);
new Android.App.Dialog : Android.Content.Context * bool * EventHandler -> Android.App.Dialog

Parameters

context
Context
cancelable
Boolean
cancelHandler
EventHandler

Remarks

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