public enum ZendriveIssueType extends Enum<ZendriveIssueType>
ZendriveSettingError
or ZendriveSettingWarning
Enum Constant and Description |
---|
BACKGROUND_RESTRICTION_ENABLED
User has enabled background restrictions on the application.
|
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
Device location settings is not set to high accuracy.
|
POWER_SAVER_MODE_ENABLED
Power saver mode is enabled.
|
WIFI_SCANNING_DISABLED
Wifi scanning is disabled on the device and is affecting location accuracy.
|
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
public static final ZendriveIssueType LOCATION_SETTINGS_ERROR
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 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