public enum ZendriveErrorCode extends 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_AND_HUAWEI_MOBILE_SERVICES_UNAVAILABLE
This error is applicable only for Huawei devices.
|
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.
|
HUAWEI_MOBILE_SERVICES_UPDATE_REQUIRED
This error is applicable only for Huawei devices.
|
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.stopManualDrive(android.content.Context, com.zendrive.sdk.ZendriveOperationCallback) call is invalid. |
INVALID_VALUE_FOR_TRIP_PARAMETER
Invalid value was passed for a given TripParameter.
|
LOCATION_ACCURACY_NOT_AVAILABLE
High accuracy location updates is not enabled on the device.
|
LOCATION_PERMISSION_DENIED
This error is applicable only for android 14 and above.
|
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.stopManualDrive(android.content.Context, com.zendrive.sdk.ZendriveOperationCallback) when no manual drive in progress. |
NOTIFICATION_PROVIDER_ERROR
Operation failed because
ZendriveNotificationProvider class was NULL. |
REGION_SWITCH_ERROR
Changing a region post setup is NOT allowed, until wipeout is called.
|
REGION_UNSUPPORTED
Operation failed because
ZendriveRegion provided was unsupported. |
SDK_NOT_SETUP
The operation failed because the SDK is not yet setup.
|
UNSUPPORTED_DEVICE
This error is applicable only for Huawei devices.
|
UNSUPPORTED_OPERATION
Operation failed because it is not supported by ZendriveSDK-testing Library.
|
UNSUPPORTED_VEHICLE_TYPE
Operation failed because the set vehicle type feature is disabled in the config.
|
USER_DEPROVISIONED
User is not authorized to use this application.
|
ZENDRIVE_CONFIGURATION_ERROR
Operation failed because
ZendriveConfiguration was null. |
ZENDRIVE_DEBUG_UPLOAD_ERROR
Operation failed because Zendrive debug data failed to upload.
|
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
Zendrive.setup(android.content.Context, com.zendrive.sdk.ZendriveConfiguration, java.lang.Class<? extends com.zendrive.sdk.ZendriveBroadcastReceiver>, java.lang.Class<? extends com.zendrive.sdk.ZendriveNotificationProvider>, com.zendrive.sdk.ZendriveOperationCallback) 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(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.stopManualDrive(android.content.Context, com.zendrive.sdk.ZendriveOperationCallback)
call is invalid.public static final ZendriveErrorCode NO_MANUAL_DRIVE
Zendrive.stopManualDrive(android.content.Context, 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
Zendrive.setup(android.content.Context, com.zendrive.sdk.ZendriveConfiguration, java.lang.Class<? extends com.zendrive.sdk.ZendriveBroadcastReceiver>, java.lang.Class<? extends com.zendrive.sdk.ZendriveNotificationProvider>, com.zendrive.sdk.ZendriveOperationCallback)
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 final ZendriveErrorCode ZENDRIVE_DEBUG_UPLOAD_ERROR
public static final ZendriveErrorCode UNSUPPORTED_OPERATION
public static final ZendriveErrorCode ZENDRIVE_CONFIGURATION_ERROR
ZendriveConfiguration
was null.public static final ZendriveErrorCode REGION_UNSUPPORTED
ZendriveRegion
provided was unsupported.public static final ZendriveErrorCode REGION_SWITCH_ERROR
public static final ZendriveErrorCode USER_DEPROVISIONED
public static final ZendriveErrorCode UNSUPPORTED_VEHICLE_TYPE
public static final ZendriveErrorCode INVALID_VALUE_FOR_TRIP_PARAMETER
public static final ZendriveErrorCode GOOGLE_AND_HUAWEI_MOBILE_SERVICES_UNAVAILABLE
Google play services and Huawei mobile services are unavailable on the device.
public static final ZendriveErrorCode HUAWEI_MOBILE_SERVICES_UPDATE_REQUIRED
The version of Huawei Mobile Services installed on the device needs to be updated for use with the Zendrive SDK.
public static final ZendriveErrorCode UNSUPPORTED_DEVICE
This device is currently unsupported by the Zendrive SDK.
public static final ZendriveErrorCode LOCATION_PERMISSION_DENIED
Due to OS constraints, manual drive cannot be started without location permission.
public static ZendriveErrorCode[] values()
for (ZendriveErrorCode c : ZendriveErrorCode.values()) System.out.println(c);
public static ZendriveErrorCode 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 null