Android Guides | Samples

Android.App.DatePickerDialog Class

A simple dialog containing an DatePicker.

See Also: DatePickerDialog

Syntax

[Android.Runtime.Register("android/app/DatePickerDialog", DoNotGenerateAcw=true)]
public class DatePickerDialog : AlertDialog, IDialogInterfaceOnClickListener, DatePicker+IOnDateChangedListener, IDisposable

Remarks

A simple dialog containing an DatePicker.

See the Pickers guide.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.App.DatePickerDialog are listed below.

See Also: AlertDialog

Public Constructors

Protected Constructors

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

Public Properties

[read-only]
DatePickerDatePicker. Gets the DatePicker contained in this dialog.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

OnClick(IDialogInterface, Int32)
This method will be invoked when a button in the dialog is clicked.
OnDateChanged(DatePicker, Int32, Int32, Int32)
Called upon a date change.
UpdateDate(DateTime)
Sets the current date.
UpdateDate(Int32, Int32, Int32)
Sets the current date.