public enum Error extends java.lang.Enum<Error>
The Error represents an error thrown by the WDW-SDK.
The WDWClientCallback returns several different errors when the behaviour of the WDW-SDK is not as expected.
All errors are notified to the application using the WDWClientCallback.onErrorOccured(Error) callback.
Whenever an error occurs, the WDW-SDK will stop itself. All of these errors need to be handled by the application.
| Enum Constant and Description |
|---|
LocationServiceDisabled
The
LocationServiceDisabled error is thrown when the user has disabled the
Location service on the device. |
MissingPermission
The
MissingPermission error is thrown when the user did not grant all the
permissions that are required by the WDW-SDK. |
PlayServicesNotAvailable
The
PlayServicesNotAvailable error is thrown when the Play services are not
available or up-to-date. |
UnsupportedHardware
The
UnsupportedHardware error is thrown when the device does not
include GPS hardware. |
| Modifier and Type | Method and Description |
|---|---|
static Error |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Error MissingPermission
The MissingPermission error is thrown when the user did not grant all the
permissions that are required by the WDW-SDK.
Manifest.permission.ACCESS_FINE_LOCATIONManifest.permission.INTERNETManifest.permission.ACCESS_NETWORK_STATEThe error may occur on starting the WDW-SDK or in runtime.
public static final Error UnsupportedHardware
The UnsupportedHardware error is thrown when the device does not
include GPS hardware.
The error may occur on starting the WDW-SDK.
public static final Error LocationServiceDisabled
The LocationServiceDisabled error is thrown when the user has disabled the
Location service on the device.
The error may occur on starting the WDW-SDK or during runtime.
public static final Error PlayServicesNotAvailable
The PlayServicesNotAvailable error is thrown when the Play services are not
available or up-to-date.
The error may occur on starting the WDW-SDK.
public static Error[] values()
for (Error c : Error.values()) System.out.println(c);
public static Error 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