Dialog Constructors

Definition

Overloads

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)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Java documentation for android.app.Dialog.Dialog(android.content.Context).

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

Java documentation for android.app.Dialog.Dialog(android.content.Context, int).

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)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

javaReference
IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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

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

the context in which the dialog should run

cancelable
Boolean
Attributes

Remarks

Java documentation for android.app.Dialog.Dialog(android.content.Context).

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