Lingua

TimePickerDialog Constructors

Definition

Overloads

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)

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

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)

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