AlertDialog.Builder Constructors

Definition

Overloads

AlertDialog.Builder(Context)

Constructor using a context for this builder and the AlertDialog it creates.

AlertDialog.Builder(Context, Int32)

Constructor using a context and theme for this builder and the AlertDialog it creates.

AlertDialog.Builder(IntPtr, JniHandleOwnership)

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

AlertDialog.Builder(Context)

Constructor using a context for this builder and the AlertDialog it creates.

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

Parameters

context
Context
Attributes

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

AlertDialog.Builder(Context, Int32)

Constructor using a context and theme for this builder and the AlertDialog it creates.

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

Parameters

context
Context
themeResId
Int32
Attributes

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

AlertDialog.Builder(IntPtr, JniHandleOwnership)

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

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

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