public enum ZendriveErrorCode extends java.lang.Enum<ZendriveErrorCode>
Enum Constant and Description |
---|
ACCIDENT_DETECTION_NOT_AVAILABLE_FOR_APPLICATION
This application does not have Accident Detection enabled.
|
ACCIDENT_DETECTION_NOT_AVAILABLE_FOR_DEVICE
This device does not have sensors that support Accident Detection.
|
ANDROID_VERSION_NOT_SUPPORTED
The Android version on the device is not supported by the SDK.
|
GOOGLE_PLAY_SERVICES_UNAVAILABLE
Google play services unavailable on the device.
|
GOOGLE_PLAY_SERVICES_UPDATE_REQUIRED
The version of Google Play Services installed on the device needs to be updated
for use with the Zendrive SDK.
|
INVALID_DRIVER_ID
The driver id provided during SDK setup is invalid.
|
INVALID_SDK_KEY
The SDK key provided during SDK setup is invalid.
|
INVALID_SESSION_ID
The session id provided to
startSession call is invalid. |
INVALID_TRACKING_ID
The tracking id provided to
startDrive or Zendrive.stopDrive(java.lang.String, com.zendrive.sdk.ZendriveOperationCallback) call is invalid. |
LOCATION_ACCURACY_NOT_AVAILABLE
High accuracy location updates is not enabled on the device.
|
MOCK_ACCIDENT_ERROR
This indicates error conditions encountered when triggering mock accidents.
|
NETWORK_NOT_AVAILABLE
This device is not connected to network.
|
NO_MANUAL_DRIVE
Called
Zendrive.stopDrive(java.lang.String, com.zendrive.sdk.ZendriveOperationCallback) when no manual drive in progress. |
NOTIFICATION_PROVIDER_ERROR
Operation failed because
ZendriveNotificationProvider class was NULL. |
SDK_NOT_SETUP
The operation failed because the SDK is not yet setup.
|
ZENDRIVE_SDK_ERROR
This indicates an internal SDK error which caused a SDK operation to fail.
|
ZENDRIVE_SDK_NOT_TORN_DOWN
This operation failed because it should not be called when the sdk is running.
|
ZENDRIVE_SDK_SETUP_IN_PROGRESS
This operation failed because it should not be called when
setup is in progress. |
ZENDRIVE_SDK_TEAR_DOWN_IN_PROGRESS
This operation failed because it should not be called when
teardown is in progress. |
Modifier and Type | Method and Description |
---|---|
static ZendriveErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveErrorCode ANDROID_VERSION_NOT_SUPPORTED
public static final ZendriveErrorCode GOOGLE_PLAY_SERVICES_UNAVAILABLE
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
int result = googleAPI.isGooglePlayServicesAvailable(this);
if(result != ConnectionResult.SUCCESS) {
if(googleAPI.isUserResolvableError(result)) {
googleAPI.getErrorDialog(this, result,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
}
}
public static final ZendriveErrorCode GOOGLE_PLAY_SERVICES_UPDATE_REQUIRED
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
int result = googleAPI.isGooglePlayServicesAvailable(this);
if(result != ConnectionResult.SUCCESS) {
if(googleAPI.isUserResolvableError(result)) {
googleAPI.getErrorDialog(this, result,
PLAY_SERVICES_RESOLUTION_REQUEST).show();
}
}
public static final ZendriveErrorCode INVALID_SDK_KEY
public static final ZendriveErrorCode INVALID_DRIVER_ID
public static final ZendriveErrorCode SDK_NOT_SETUP
public static final ZendriveErrorCode INVALID_TRACKING_ID
startDrive
or Zendrive.stopDrive(java.lang.String, com.zendrive.sdk.ZendriveOperationCallback)
call is invalid.public static final ZendriveErrorCode NO_MANUAL_DRIVE
Zendrive.stopDrive(java.lang.String, com.zendrive.sdk.ZendriveOperationCallback)
when no manual drive in progress.
Note that trying to stop an automatically detected drive will return this error code.public static final ZendriveErrorCode INVALID_SESSION_ID
startSession
call is invalid.public static final ZendriveErrorCode ACCIDENT_DETECTION_NOT_AVAILABLE_FOR_DEVICE
public static final ZendriveErrorCode ACCIDENT_DETECTION_NOT_AVAILABLE_FOR_APPLICATION
public static final ZendriveErrorCode NETWORK_NOT_AVAILABLE
public static final ZendriveErrorCode LOCATION_ACCURACY_NOT_AVAILABLE
public static final ZendriveErrorCode ZENDRIVE_SDK_ERROR
public static final ZendriveErrorCode ZENDRIVE_SDK_NOT_TORN_DOWN
public static final ZendriveErrorCode ZENDRIVE_SDK_SETUP_IN_PROGRESS
setup
is in progress.public static final ZendriveErrorCode ZENDRIVE_SDK_TEAR_DOWN_IN_PROGRESS
teardown
is in progress.public static final ZendriveErrorCode MOCK_ACCIDENT_ERROR
public static final ZendriveErrorCode NOTIFICATION_PROVIDER_ERROR
ZendriveNotificationProvider
class was NULL.public static ZendriveErrorCode[] values()
for (ZendriveErrorCode c : ZendriveErrorCode.values()) System.out.println(c);
public static ZendriveErrorCode 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