Share via


DatePicker.Init Method

Definition

Initialize the state.

[Android.Runtime.Register("init", "(IIILandroid/widget/DatePicker$OnDateChangedListener;)V", "GetInit_IIILandroid_widget_DatePicker_OnDateChangedListener_Handler")]
public virtual void Init (int year, int monthOfYear, int dayOfMonth, Android.Widget.DatePicker.IOnDateChangedListener? onDateChangedListener);
[<Android.Runtime.Register("init", "(IIILandroid/widget/DatePicker$OnDateChangedListener;)V", "GetInit_IIILandroid_widget_DatePicker_OnDateChangedListener_Handler")>]
abstract member Init : int * int * int * Android.Widget.DatePicker.IOnDateChangedListener -> unit
override this.Init : int * int * int * Android.Widget.DatePicker.IOnDateChangedListener -> unit

Parameters

year
Int32

The initial year.

monthOfYear
Int32

The initial month <strong>starting from zero</strong>.

dayOfMonth
Int32

The initial day of the month.

onDateChangedListener
DatePicker.IOnDateChangedListener

How user is notified date is changed by user, can be null.

Attributes

Remarks

Java documentation for android.widget.DatePicker.init(int, int, int, android.widget.OnDateChangedListener).

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