Language

TimePickerDialog Constructors

Definition

Overloads

Name Description
TimePickerDialog(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

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

Creates a new time picker dialog.

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

Initializes a time-picker dialog with a managed time-set handler.

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)

Initializes a themed time-picker dialog with a managed time-set handler.

TimePickerDialog(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

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

Parameters

javaReference
IntPtr

nativeint

The Java Native Interface object reference.

transfer
JniHandleOwnership

The ownership transfer to apply to the Java Native Interface object reference.

Remarks

This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.

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.

[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

Context: the parent context

listener
TimePickerDialog.IOnTimeSetListener

TimePickerDialog.OnTimeSetListener: the listener to call when the time is set

hourOfDay
Int32

int: the initial hour

minute
Int32

int: the initial minute

is24HourView
Boolean

boolean: whether this is a 24 hour view or AM/PM

Attributes

Remarks

Creates a new time picker dialog.

Android reference for android.app.TimePickerDialog.TimePickerDialog.

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)

Initializes a time-picker dialog with a managed time-set handler.

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

The parent context forwarded to the platform dialog constructor.

callBack
EventHandler<TimePickerDialog.TimeSetEventArgs>

The managed handler to wrap as the time-set listener.

hourOfDay
Int32

The hour selected when the dialog is initialized.

minute
Int32

The minute selected when the dialog is initialized.

is24HourView
Boolean

true to use a 24-hour view; false to use an AM/PM view.

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

Context: the parent context

themeResId
Int32

int: the resource ID of the theme to apply to this dialog

listener
TimePickerDialog.IOnTimeSetListener

TimePickerDialog.OnTimeSetListener: the listener to call when the time is set

hourOfDay
Int32

int: the initial hour

minute
Int32

int: the initial minute

is24HourView
Boolean

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

Attributes

Remarks

Creates a new time picker dialog with the specified theme. The theme is overlaid on top of the theme of the parent context. If themeResId is 0, the dialog will be inflated using the theme specified by the android:timePickerDialogTheme attribute on the parent context's theme.

Android reference for android.app.TimePickerDialog.TimePickerDialog.

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)

Initializes a themed time-picker dialog with a managed time-set handler.

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

The parent context forwarded to the platform dialog constructor.

theme
Int32

The theme resource identifier forwarded to the themed dialog constructor.

callBack
EventHandler<TimePickerDialog.TimeSetEventArgs>

The managed handler to wrap as the time-set listener.

hourOfDay
Int32

The hour selected when the dialog is initialized.

minute
Int32

The minute selected when the dialog is initialized.

is24HourView
Boolean

true to use a 24-hour view; false to use an AM/PM view.

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