Enum Class GeoUniq.RequestResult
- All Implemented Interfaces:
Serializable,Comparable<GeoUniq.RequestResult>,Constable
- Enclosing class:
- GeoUniq
GeoUniq.IErrorListener.onError(GeoUniq.RequestResult) callback is called.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRefers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener)or to the tracking functionality.Refers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener)or to the tracking functionality.Refers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener).Refers to a request that needs Google Play Services to be performed.Refers to a request that needs Google Play Services to be performed.The request was successful. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif callingstartResolution(Activity)will start any intents requiring User interaction.voidstartResolution(android.app.Activity activity) Resolves an error by starting any intents requiring user interaction.static GeoUniq.RequestResultReturns the enum constant of this class with the specified name.static GeoUniq.RequestResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The request was successful. -
GEOLOCATION_UNAVAILABLE
Refers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener)or to the tracking functionality.
Means that it is not possible to detect the location of the device or to perform background tracking because geolocation is disabled.
This error can be solved by asking the User to enable geolocation.
-
LOCATION_NOT_DETECTED
Refers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener).
Means that it was not possible to detect the location of the device even if geolocation is available. This might happen when GPS geolocation system cannot detect the location due to bad or no signal, and/or when the location cannot be retrieved from the network due to no Internet connection.
This error has no resolution.
-
PLAY_SERVICES_RECOVERABLE_ERROR
Refers to a request that needs Google Play Services to be performed.
Means that a problem occurred but the problem has resolution, for instance by asking the User to enable Play Services or to download a new version.
-
PLAY_SERVICES_UNRECOVERABLE_ERROR
Refers to a request that needs Google Play Services to be performed.
Means that a problem with no resolution occurred.
-
GEOLOCATION_PERMISSION_NOT_GRANTED
Refers to a location request performed by callingGeoUniq.getLocation(float, ILocationListener, IErrorListener)or to the tracking functionality.
It means that it is not possible to detect the location of the device or to perform background tracking because location permission is not granted (Android API 23 and later).
This error can be solved by asking the User to grant the location permission.
-
BACKGROUND_GEOLOCATION_PERMISSION_NOT_GRANTED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
hasResolution
public boolean hasResolution()Returnstrueif callingstartResolution(Activity)will start any intents requiring User interaction.- Returns:
trueif there is a resolution that can be started
-
startResolution
public void startResolution(android.app.Activity activity) Resolves an error by starting any intents requiring user interaction. SeeGEOLOCATION_UNAVAILABLE,GEOLOCATION_PERMISSION_NOT_GRANTED, andPLAY_SERVICES_RECOVERABLE_ERROR.
The parameter
activityprovides anActivityobject that will be used to display the appropriate Dialog.- Parameters:
activity- AnActivityobject
-