public enum ZendriveVehicleType extends Enum<ZendriveVehicleType> implements ZendriveValueEnum
A default vehicle type can be set using setVehicleType
in ZendriveDriverAttributes.
The detected type is returned to the application in the vehicleType
field of the DriveInfo.
| Enum Constant and Description |
|---|
CAR |
MOTORCYCLE |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Provides a value for each enum value that is stable across releases.
|
static ZendriveVehicleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveVehicleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveVehicleType CAR
public static final ZendriveVehicleType MOTORCYCLE
public static ZendriveVehicleType[] values()
for (ZendriveVehicleType c : ZendriveVehicleType.values()) System.out.println(c);
public static ZendriveVehicleType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
ZendriveValueEnumThe value is consistent with the enum values returned by the iOS SDK.
getValue in interface ZendriveValueEnum