public static enum TravelTimePicker.Variety extends java.lang.Enum<TravelTimePicker.Variety>
RouteOptions.TimeType that
can be set using this picker.
Default is DEPARTURE which will result in
RouteOptions.TimeType.DEPARTURE when a time and date is picked.
Please note, only when setting BOTH, the dialog will contain two buttons to select the
RouteOptions.TimeType, otherwise no additional button will be shown.
| Enum Constant and Description |
|---|
ARRIVAL
Defines the type as
ARRIVAL. |
BOTH
Defines a state with two buttons to select
DEPARTURE or ARRIVAL. |
DEPARTURE
Defines the type as
DEPARTURE. |
| Modifier and Type | Method and Description |
|---|---|
static TravelTimePicker.Variety |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TravelTimePicker.Variety[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TravelTimePicker.Variety BOTH
DEPARTURE or ARRIVAL. Default selection is
DEPARTURE.public static final TravelTimePicker.Variety DEPARTURE
DEPARTURE. This will show the picker without any button on top and
the picked time will be of type RouteOptions.TimeType.DEPARTURE.public static final TravelTimePicker.Variety ARRIVAL
ARRIVAL. This will show the picker without any button on top and
the picked time will be of type RouteOptions.TimeType.ARRIVAL.public static TravelTimePicker.Variety[] values()
for (TravelTimePicker.Variety c : TravelTimePicker.Variety.values()) System.out.println(c);
public static TravelTimePicker.Variety valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null