DatePickerDialog Constructors

Definition

Overloads

DatePickerDialog(Context)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

DatePickerDialog(Context, Int32)

Creates a new date picker dialog for the current date.

DatePickerDialog(IntPtr, JniHandleOwnership)

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

DatePickerDialog(Context, DatePickerDialog+IOnDateSetListener, Int32, Int32, Int32)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

DatePickerDialog(Context, EventHandler<DatePickerDialog.DateSetEventArgs>, Int32, Int32, Int32)
DatePickerDialog(Context, Int32, DatePickerDialog+IOnDateSetListener, Int32, Int32, Int32)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

DatePickerDialog(Context, Int32, EventHandler<DatePickerDialog.DateSetEventArgs>, Int32, Int32, Int32)

DatePickerDialog(Context)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

C#
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=24)]
public DatePickerDialog (Android.Content.Context context);

Parameters

context
Context

the parent context

Attributes

Remarks

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(Context, Int32)

Creates a new date picker dialog for the current date.

C#
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "", ApiSince=24)]
public DatePickerDialog (Android.Content.Context context, int themeResId);

Parameters

context
Context

the parent context

themeResId
Int32

the resource ID of the theme against which to inflate this dialog, or 0 to use the parent context's default alert dialog theme

Attributes

Remarks

Creates a new date picker dialog for the current date.

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(IntPtr, JniHandleOwnership)

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

C#
protected DatePickerDialog (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(Context, DatePickerDialog+IOnDateSetListener, Int32, Int32, Int32)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

C#
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/DatePickerDialog$OnDateSetListener;III)V", "")]
public DatePickerDialog (Android.Content.Context context, Android.App.DatePickerDialog.IOnDateSetListener? listener, int year, int month, int dayOfMonth);

Parameters

context
Context

the parent context

year
Int32
month
Int32
dayOfMonth
Int32
Attributes

Remarks

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(Context, EventHandler<DatePickerDialog.DateSetEventArgs>, Int32, Int32, Int32)

C#
public DatePickerDialog (Android.Content.Context context, EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> callBack, int year, int monthOfYear, int dayOfMonth);

Parameters

context
Context
year
Int32
monthOfYear
Int32
dayOfMonth
Int32

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(Context, Int32, DatePickerDialog+IOnDateSetListener, Int32, Int32, Int32)

Creates a new date picker dialog for the current date using the parent context's default date picker dialog theme.

C#
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/DatePickerDialog$OnDateSetListener;III)V", "")]
public DatePickerDialog (Android.Content.Context context, int themeResId, Android.App.DatePickerDialog.IOnDateSetListener? listener, int year, int monthOfYear, int dayOfMonth);

Parameters

context
Context

the parent context

themeResId
Int32
year
Int32
monthOfYear
Int32
dayOfMonth
Int32
Attributes

Remarks

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35

DatePickerDialog(Context, Int32, EventHandler<DatePickerDialog.DateSetEventArgs>, Int32, Int32, Int32)

C#
public DatePickerDialog (Android.Content.Context context, int theme, EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> callBack, int year, int monthOfYear, int dayOfMonth);

Parameters

context
Context
theme
Int32
year
Int32
monthOfYear
Int32
dayOfMonth
Int32

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

.NET for Android .NET for Android API 35 and .NET for Android .NET for Android API 34
Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35