Udostępnij za pośrednictwem


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.

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

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

DatePickerDialog(Context, Int32)

Creates a new date picker dialog for the current date.

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

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

DatePickerDialog(IntPtr, JniHandleOwnership)

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

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

Parameters

javaReference
IntPtr

nativeint

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

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.

[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);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/DatePickerDialog$OnDateSetListener;III)V", "")>]
new Android.App.DatePickerDialog : Android.Content.Context * Android.App.DatePickerDialog.IOnDateSetListener * int * int * int -> Android.App.DatePickerDialog

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

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

public DatePickerDialog (Android.Content.Context context, EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> callBack, int year, int monthOfYear, int dayOfMonth);
new Android.App.DatePickerDialog : Android.Content.Context * EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> * int * int * int -> Android.App.DatePickerDialog

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

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.

[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);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/DatePickerDialog$OnDateSetListener;III)V", "")>]
new Android.App.DatePickerDialog : Android.Content.Context * int * Android.App.DatePickerDialog.IOnDateSetListener * int * int * int -> Android.App.DatePickerDialog

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

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

public DatePickerDialog (Android.Content.Context context, int theme, EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> callBack, int year, int monthOfYear, int dayOfMonth);
new Android.App.DatePickerDialog : Android.Content.Context * int * EventHandler<Android.App.DatePickerDialog.DateSetEventArgs> * int * int * int -> Android.App.DatePickerDialog

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