public interface TimePickerController
| Modifier and Type | Method and Description |
|---|---|
int |
getAccentColor() |
TimePickerDialog.Version |
getVersion() |
boolean |
is24HourMode() |
boolean |
isAmDisabled() |
boolean |
isOutOfRange(Timepoint time,
int index) |
boolean |
isPmDisabled() |
boolean |
isThemeDark() |
Timepoint |
roundToNearest(Timepoint time,
Timepoint.TYPE type)
Will round the given Timepoint to the nearest valid Timepoint given the following restrictions:
- TYPE.HOUR, it will just round to the next valid point, possible adjusting minutes and seconds
- TYPE.MINUTE, it will round to the next valid point, without adjusting the hour, but possibly adjusting the seconds
- TYPE.SECOND, it will round to the next valid point, only adjusting the seconds
|
void |
tryVibrate()
Request the device to vibrate
|
boolean isThemeDark()
boolean is24HourMode()
int getAccentColor()
TimePickerDialog.Version getVersion()
void tryVibrate()
boolean isOutOfRange(Timepoint time, int index)
time - Timepoint - the selected point in timeindex - int - The current view to consider when calculating the rangeboolean isAmDisabled()
boolean isPmDisabled()
Timepoint roundToNearest(Timepoint time, Timepoint.TYPE type)
time - Timepoint - the timepoint to validatetype - Timepoint.TYPE - whether we should round the hours, minutes or seconds