Class

iOSCountdownPicker


Description

A countdown timer control that lets the user choose hours and minutes.

Events

Name

Parameters

Returns

Closing

Opening

ValueChanged

duration As Double

Property descriptions


iOSCountdownPicker.AccessibilityHint

AccessibilityHint As String

The accessibility hint is a longer description that is read aloud when VoiceOver is enabled.

Me.AccessibilityHint = "Click to calculate the value and display the next screen."

iOSCountdownPicker.AccessibilityLabel

AccessibilityLabel As String

The accessibility label of of a control is a short name that is read aloud when VoiceOver is enabled.

Me.AccessibilityLabel = "Calculate the value."

iOSCountdownPicker.ControlCount

ControlCount As Integer

The number of child controls in the control.


iOSCountdownPicker.CountdownDuration

CountdownDuration As Double

The amount of time (in minutes) the control is displaying.


iOSCountdownPicker.Enabled

Enabled As Boolean

Indicates whether the control is enabled or disabled.

Disable the button:

Button1.Enabled = False

iOSCountdownPicker.Height

Height As Integer

The height of the control.

This property is read-only.


iOSCountdownPicker.Left

Left As Integer

The left position of the control.

This property is read-only.


iOSCountdownPicker.MinuteInterval

MinuteInterval As Integer

The interval between minutes displayed.


iOSCountdownPicker.Name

Name As String

The name of the control.

This property is read-only.


iOSCountdownPicker.Parent

Parent As MobileUIControl

The parent (sometimes called a "Super") class of the control.

This property is read-only.


iOSCountdownPicker.TintColor

TintColor As ColorGroup

Changes a control's tint color.

On iOS, the following controls support TintColor:

Enum

Description

ProgressBar

The area indicating the value of the control will be drawn in the TintColor.

Slider

The area indicating the value of the control will be drawn in the TintColor.

TextArea

The cursor and text highlight color will be drawn in the TintColor.

TextField

The cursor and text highlight color will be drawn in the TintColor.


iOSCountdownPicker.Top

Top As Integer

The top position of the control.

This property is read-only.


iOSCountdownPicker.Visible

Visible As Boolean

Indicates whether the control is visible.

Make a button invisible:

Button1.Visible = False

iOSCountdownPicker.Width

Width As Integer

The width of the control.

This property is read-only.

Method descriptions


iOSCountdownPicker.AddConstraint

AddConstraint(constraint As iOSLayoutConstraint)

Adds a constraint to the control.

This constraint is used by child controls that have been added to this control.


iOSCountdownPicker.AddControl

AddControl(child As MobileUIControl)

Adds a child control to the control.


iOSCountdownPicker.ClearFocus

ClearFocus

Removes the focus from the control.

TextField1.ClearFocus

iOSCountdownPicker.ControlAt

ControlAt(index As Integer) As MobileUIControl

Gets the child control at the specified index.


iOSCountdownPicker.Controls

Controls As Iterable

Allows you to iterate through all the controls that have been added to this control.

Important

This is supported for iOS only.


iOSCountdownPicker.Handle

Handle As Ptr

The handle to the underlying native OS control.


iOSCountdownPicker.Refresh

Refresh

Marks the control so that it will be redrawn during the next event loop.

Call Refresh to force a Canvas to redraw itself:

Canvas1.Refresh

iOSCountdownPicker.RemoveConstraint

RemoveConstraint(constraint As iOSLayoutConstraint)

Removes a constraint from the control.


iOSCountdownPicker.RemoveControl

RemoveControl(child As MobileUIControl)

Removes the control from the control.


iOSCountdownPicker.SetFocus

SetFocus

Sets the focus to the control.

TextField1.SetFocus

Event descriptions


iOSCountdownPicker.Closing

Closing

Called when the control's layout is closing.


iOSCountdownPicker.Opening

Opening

Called when the control's layout is opening.

This is where you typically put initialization code.

This example in the Opening event of a label sets its text to "Hello":

Me.Text = "Hello"

iOSCountdownPicker.ValueChanged

ValueChanged(duration As Double)

The value displayed has changed.

Notes

This control only provides a user interface. It's not a timer. Use the Timer control to create an actual timer.

Compatibility

iOS projects on the iOS operating system.

See also

MobileUIControl parent class; MobileDateTimePicker control.