public enum ZendriveIssueType extends Enum<ZendriveIssueType>
ZendriveSettingError
or ZendriveSettingWarning
Enum Constant and Description |
---|
ACTIVITY_RECOGNITION_PERMISSION_DENIED
User has denied activity recognition permission to the application and the current drive detection mode is
ZendriveDriveDetectionMode.AUTO_ON . |
AIRPLANE_MODE_ENABLED
Airplane mode is enabled on the device and is affecting location accuracy.
|
BACKGROUND_RESTRICTION_ENABLED
User has enabled background restrictions on the application.
|
BATTERY_OPTIMIZATION_ENABLED
Battery optimization is enabled.
|
BLUETOOTH_DISABLED
Bluetooth is disabled when there are some vehicles already associated by using
associateVehicle . |
GOOGLE_PLAY_CONNECTION_ERROR
Zendrive SDK was unable to connect to Google Play services.
|
GOOGLE_PLAY_SETTINGS_ERROR
There is a settings error from Google play services.
|
LOCATION_PERMISSION_DENIED
User has denied location permission to the application.
|
LOCATION_SETTINGS_ERROR
Deprecated.
This issue type is no longer used and will be removed in a future SDK release.
|
ONE_PLUS_DEEP_OPTIMIZATION
OnePlus OEM specific Deep Optimization battery setting is enabled on device.
|
OVERLAY_PERMISSION_DENIED
Draw over other apps is disabled.
|
POWER_SAVER_MODE_ENABLED
Power saver mode is enabled.
|
WIFI_SCANNING_DISABLED
Deprecated.
This issue type is no longer used and will be removed in a future SDK release.
|
Modifier and Type | Method and Description |
---|---|
static ZendriveIssueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZendriveIssueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZendriveIssueType POWER_SAVER_MODE_ENABLED
For devices running OS versions prior to Android P, this is returned as a warning. For devices running Android P and above, it is returned as an error if this affects location when device screen is turned off. Otherwise this is returned as a warning.
public static final ZendriveIssueType BACKGROUND_RESTRICTION_ENABLED
public static final ZendriveIssueType LOCATION_PERMISSION_DENIED
Manifest.permission.ACCESS_BACKGROUND_LOCATION
in addition to
Manifest.permission.ACCESS_FINE_LOCATION
.public static final ZendriveIssueType BATTERY_OPTIMIZATION_ENABLED
public static final ZendriveIssueType ONE_PLUS_DEEP_OPTIMIZATION
This error indicates that trip detection of Zendrive SDK is heavily restricted and drives may not be properly recorded. This is returned on devices running OS version Android P or lower.
The user should cast the ZendriveSettingError
to an instance of
ZendriveResolvableError
. The user should then use the
ZendriveResolvableError.navigableIntent
to navigate to device specific screen to
resolve error.
@Deprecated public static final ZendriveIssueType LOCATION_SETTINGS_ERROR
@Deprecated public static final ZendriveIssueType WIFI_SCANNING_DISABLED
On devices running OS versions older than Jelly Bean MR2, this happens when the wifi radio is turned off, either separately or as part of airplane mode.
On devices running OS versions Jelly Bean MR2 and up, this happens if wifi scanning isn't set to "always on" and the wifi radio is turned off, either separately or as part of airplane mode.public static final ZendriveIssueType GOOGLE_PLAY_CONNECTION_ERROR
The user should cast the ZendriveSettingError
to an instance of
GooglePlayConnectionError
.
The user should then use the GooglePlayConnectionError.connectionResult
to diagnose and resolve the issue.
public static final ZendriveIssueType GOOGLE_PLAY_SETTINGS_ERROR
The user should cast the ZendriveSettingError
to an instance of
GooglePlaySettingsError
.
The user should then use the GooglePlaySettingsError.googlePlaySettingsResult
to diagnose and resolve the issue.
public static final ZendriveIssueType ACTIVITY_RECOGNITION_PERMISSION_DENIED
ZendriveDriveDetectionMode.AUTO_ON
.
This is returned only on devices running OS version Android Q or higher.public static final ZendriveIssueType OVERLAY_PERMISSION_DENIED
public static final ZendriveIssueType AIRPLANE_MODE_ENABLED
public static final ZendriveIssueType BLUETOOTH_DISABLED
associateVehicle
.public static ZendriveIssueType[] values()
for (ZendriveIssueType c : ZendriveIssueType.values()) System.out.println(c);
public static ZendriveIssueType 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