TimePickerDialog Constructors

Definition

Overloads

TimePickerDialog(IntPtr, JniHandleOwnership)

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

TimePickerDialog(Context, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)

Creates a new time picker dialog with the specified theme.

TimePickerDialog(Context, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)
TimePickerDialog(Context, Int32, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)

Creates a new time picker dialog with the specified theme.

TimePickerDialog(Context, Int32, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)

TimePickerDialog(IntPtr, JniHandleOwnership)

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

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

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

TimePickerDialog(Context, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)

Creates a new time picker dialog with the specified theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")]
public TimePickerDialog (Android.Content.Context? context, Android.App.TimePickerDialog.IOnTimeSetListener? listener, int hourOfDay, int minute, bool is24HourView);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")>]
new Android.App.TimePickerDialog : Android.Content.Context * Android.App.TimePickerDialog.IOnTimeSetListener * int * int * bool -> Android.App.TimePickerDialog

Parameters

context
Context

the parent context

listener
TimePickerDialog.IOnTimeSetListener

the listener to call when the time is set

hourOfDay
Int32

the initial hour

minute
Int32

the initial minute

is24HourView
Boolean

Whether this is a 24 hour view, or AM/PM.

Attributes

Remarks

Java documentation for android.app.TimePickerDialog.TimePickerDialog(android.content.Context, int, android.app.OnTimeSetListener, int, int, boolean).

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

TimePickerDialog(Context, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)

public TimePickerDialog (Android.Content.Context context, EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> callBack, int hourOfDay, int minute, bool is24HourView);
new Android.App.TimePickerDialog : Android.Content.Context * EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> * int * int * bool -> Android.App.TimePickerDialog

Parameters

context
Context
hourOfDay
Int32
minute
Int32
is24HourView
Boolean

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

TimePickerDialog(Context, Int32, TimePickerDialog+IOnTimeSetListener, Int32, Int32, Boolean)

Creates a new time picker dialog with the specified theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")]
public TimePickerDialog (Android.Content.Context? context, int themeResId, Android.App.TimePickerDialog.IOnTimeSetListener? listener, int hourOfDay, int minute, bool is24HourView);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILandroid/app/TimePickerDialog$OnTimeSetListener;IIZ)V", "")>]
new Android.App.TimePickerDialog : Android.Content.Context * int * Android.App.TimePickerDialog.IOnTimeSetListener * int * int * bool -> Android.App.TimePickerDialog

Parameters

context
Context

the parent context

themeResId
Int32

the resource ID of the theme to apply to this dialog

listener
TimePickerDialog.IOnTimeSetListener

the listener to call when the time is set

hourOfDay
Int32

the initial hour

minute
Int32

the initial minute

is24HourView
Boolean

Whether this is a 24 hour view, or AM/PM.

Attributes

Remarks

Java documentation for android.app.TimePickerDialog.TimePickerDialog(android.content.Context, int, android.app.OnTimeSetListener, int, int, boolean).

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

TimePickerDialog(Context, Int32, EventHandler<TimePickerDialog.TimeSetEventArgs>, Int32, Int32, Boolean)

public TimePickerDialog (Android.Content.Context context, int theme, EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> callBack, int hourOfDay, int minute, bool is24HourView);
new Android.App.TimePickerDialog : Android.Content.Context * int * EventHandler<Android.App.TimePickerDialog.TimeSetEventArgs> * int * int * bool -> Android.App.TimePickerDialog

Parameters

context
Context
theme
Int32
hourOfDay
Int32
minute
Int32
is24HourView
Boolean

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