Enum GeoUniq.TrackingProfile.GpsUsage

    • Enum Constant Detail

      • NEVER_ALLOWED

        public static final GeoUniq.TrackingProfile.GpsUsage NEVER_ALLOWED
        GPS usage is never allowed.

        Setting thus value does not guarantee the minimum battery drain if the location of the device cannot be detected from the other geolocation systems.

      • HARDLY_EVER_ALLOWED

        public static final GeoUniq.TrackingProfile.GpsUsage HARDLY_EVER_ALLOWED
        GPS usage is highly restricted.

        This value allows to still detect the location of the device in those cases when the other geolocation systems fail, and might even lead to a lower battery drain than NEVER_ALLOWED by avoiding using the other geolocation systems too often without succeeding.

        This is the default value used by GeoUniq SDK and the most recommended one.

      • SUFFICIENTLY_ALLOWED

        public static final GeoUniq.TrackingProfile.GpsUsage SUFFICIENTLY_ALLOWED
        GPS usage is sufficiently allowed.

        This value gives several chances to use GPS when the other geolocation systems fail, thus allowing a better tracking but could lead to a little increase in battery drain.

      • ALMOST_ALWAYS_ALLOWED

        public static final GeoUniq.TrackingProfile.GpsUsage ALMOST_ALWAYS_ALLOWED
        GPS usage is almost always allowed.

        This value guarantees very good tracking but could lead to a significant increase in battery drain in those cases when detecting the location of the device through the other geolocation systems fails systematically.

        Using this value as typical behavior is highly discouraged.

      • ALWAYS_ALLOWED

        public static final GeoUniq.TrackingProfile.GpsUsage ALWAYS_ALLOWED
        GPS usage is always allowed.

        This value guarantees the best tracking but could lead to a dramatic increase in battery drain in those cases when detecting the location of the device through the other geolocation systems fails systematically.

        Using this value as typical behavior is highly discouraged, especially if

    • Method Detail

      • values

        public static GeoUniq.TrackingProfile.GpsUsage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GeoUniq.TrackingProfile.GpsUsage c : GeoUniq.TrackingProfile.GpsUsage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GeoUniq.TrackingProfile.GpsUsage valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null