Enum Class LocationRequest.RealtimeUpdateInterval
- All Implemented Interfaces:
Serializable,Comparable<LocationRequest.RealtimeUpdateInterval>,Constable
- Enclosing class:
- LocationRequest
These geolocations will be visualized in the Dashboard's Realtime Panel, hence the name of the Enum.
Short time intervals are only recommended if you need to know the geolocation of the user at all times without much delay (e.g. tracking applications with realtime response requirements). Otherwise, you may want to increase the time interval: this will result in significant battery savings.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionComputed geolocations will be sent to Situm Platform every 30 minutes.Computed geolocations will be accumulated and sent to Situm Platform every 5 seconds.Computed geolocations won't be uploaded to Situm Platform.Computed geolocations will be accumulated and sent to Situm Platform every 15 seconds.Computed geolocations will be sent to Situm Platform every second.Computed geolocations will be sent to Situm Platform every 25 seconds. -
Method Summary
Modifier and TypeMethodDescriptionintGets the time interval (in milliseconds) between consecutive indoor geolocations communicated viaLocationListener.onLocationChanged(Location)callback.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
REALTIME
Computed geolocations will be sent to Situm Platform every second. Battery typically lasts 9-12 hours. -
FAST
Computed geolocations will be accumulated and sent to Situm Platform every 5 seconds. Battery typically lasts 10-13 hours. -
NORMAL
Computed geolocations will be accumulated and sent to Situm Platform every 15 seconds. Battery typically lasts 12-15 hours. -
SLOW
Computed geolocations will be sent to Situm Platform every 25 seconds. Battery typically lasts 14-16 hours. -
BATTERY_SAVER
Computed geolocations will be sent to Situm Platform every 30 minutes. Battery typically lasts up to 24 hours (Situm SDK battery consumption is negligible).This option only works on SDK 2.25.1 and above.
-
NEVER
Computed geolocations won't be uploaded to Situm Platform. Battery typically lasts up to 24 hours (Situm SDK battery consumption is negligible).You will not be able to see the users' geolocations in the Dashboard's Realtime Panel dashboard, nor to generate location based analytics.
Please take into account that activating this option might also reduce our ability to provide remote support, although we will still store some debugging information to be able to assist you.
This option only works on SDK 2.47.0 and above.
-
-
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
-
getInterval
public int getInterval()Gets the time interval (in milliseconds) between consecutive indoor geolocations communicated viaLocationListener.onLocationChanged(Location)callback.To set this value, use
LocationRequest.Builder.interval(int). Default value is 1000 milliseconds.- Returns:
- value in milliseconds
-