Class ISN_UIDateTimePicker
A control used for the inputting of date and time values. https://developer.apple.com/documentation/uikit/uidatepicker?language=objc
Inheritance
Inherited Members
Namespace: SA.iOS.UIKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UIDateTimePicker
Properties
DatePickerMode
Use this property to change the type of information displayed by the date picker. It determines whether the date picker allows selection of a date, a time, both date and time, or a countdown time. The default mode is DateAndTime. See ISN_UIDateTimePickerMode for a list of mode constants.
Declaration
public ISN_UIDateTimePickerMode DatePickerMode { get; set; }
Property Value
Type | Description |
---|---|
ISN_UIDateTimePickerMode |
MinuteInterval
The interval at which the date picker should display minutes.
Use this property to set the interval displayed by the minutes wheel (for example, 15 minutes). The interval value must be evenly divided into 60; if it is not, the default value is used. The default and minimum values are 1; the maximum value is 30.
Declaration
public int MinuteInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OnPickerDateChanged
The event is fired every time user changes the date while using picker in any mode
Declaration
public static SA_iEvent<DateTime> OnPickerDateChanged { get; }
Property Value
Type | Description |
---|---|
SA_iEvent<DateTime> |
Methods
SetCountDownDuration(TimeSpan)
Use this property to get and set the currently selected value when the date picker’s mode property
is set to CountdownTimer.
This property is of type
Declaration
public void SetCountDownDuration(TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | duration | Duration. |
SetDate(DateTime)
Sets the date to display in the date picker
Declaration
public void SetDate(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
DateTime | date |
Show(Action<DateTime>)
Declaration
public void Show(Action<DateTime> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<DateTime> | callback |