com.netmera.mobile
Class NetmeraGeofence

java.lang.Object
  extended by com.netmera.mobile.NetmeraGeofence

Deprecated. Used to control Netmera Geofence Settings, use NetmeraLocationSettings to set the location tracking settings.

@Deprecated
public class NetmeraGeofence
extends java.lang.Object


Field Summary
static int PRIORITY_BALANCED_POWER_ACCURACY
          Deprecated.  
static int PRIORITY_HIGH_ACCURACY
          Deprecated.  
static int PRIORITY_LOW_POWER
          Deprecated.  
static int PRIORITY_NO_POWER
          Deprecated.  
 
Constructor Summary
NetmeraGeofence()
          Deprecated. Default constructor
 
Method Summary
 long getFastestInterval()
          Deprecated.  
 long getIntervalMeters()
          Deprecated.  
 long getIntervalSeconds()
          Deprecated.  
 int getPriority()
          Deprecated. Get the quality of the request.
 NetmeraGeofence setFastestInterval(long fastestInterval)
          Deprecated. Explicitly set the fastest interval for location updates, in milliseconds.
 NetmeraGeofence setIntervalMeters(long intervalMeters)
          Deprecated. Set interval meters
 NetmeraGeofence setIntervalSeconds(long intervalSeconds)
          Deprecated. Set interval seconds
 NetmeraGeofence setPriority(int priority)
          Deprecated. Set the priority of the request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIORITY_HIGH_ACCURACY

public static final int PRIORITY_HIGH_ACCURACY
Deprecated. 
See Also:
Constant Field Values

PRIORITY_BALANCED_POWER_ACCURACY

public static final int PRIORITY_BALANCED_POWER_ACCURACY
Deprecated. 
See Also:
Constant Field Values

PRIORITY_LOW_POWER

public static final int PRIORITY_LOW_POWER
Deprecated. 
See Also:
Constant Field Values

PRIORITY_NO_POWER

public static final int PRIORITY_NO_POWER
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

NetmeraGeofence

public NetmeraGeofence()
Deprecated. 
Default constructor

Method Detail

getPriority

public int getPriority()
Deprecated. 
Get the quality of the request.

Returns:
an accuracy constant

setPriority

public NetmeraGeofence setPriority(int priority)
Deprecated. 
Set the priority of the request.

Use with a priority constant such as PRIORITY_HIGH_ACCURACY. No other values are accepted.

The priority of the request is a strong hint to the LocationClient for which location sources to use. For example, PRIORITY_HIGH_ACCURACY is more likely to use GPS, and PRIORITY_BALANCED_POWER_ACCURACY is more likely to use WIFI & Cell tower positioning, but it also depends on many other factors (such as which sources are available) and is implementation dependent.

Parameters:
priority - an accuracy or power constant

getIntervalSeconds

public long getIntervalSeconds()
Deprecated. 
Returns:
interval seconds for location updates

setIntervalSeconds

public NetmeraGeofence setIntervalSeconds(long intervalSeconds)
Deprecated. 
Set interval seconds

Parameters:
intervalSeconds - in second

getIntervalMeters

public long getIntervalMeters()
Deprecated. 
Returns:
interval meters for location updates

setIntervalMeters

public NetmeraGeofence setIntervalMeters(long intervalMeters)
Deprecated. 
Set interval meters

Parameters:
intervalMeters - in meters

getFastestInterval

public long getFastestInterval()
Deprecated. 

setFastestInterval

public NetmeraGeofence setFastestInterval(long fastestInterval)
Deprecated. 
Explicitly set the fastest interval for location updates, in milliseconds.

This controls the fastest rate at which your application will receive location updates, which might be faster than setIntervalSeconds(long) in some situations (for example, if other applications are triggering location updates).

This allows your application to passively acquire locations at a rate faster than it actively acquires locations, saving power.

Unlike setIntervalSeconds(long), this parameter is exact. Your application will never receive updates faster than this value.

If you don't call this method, a fastest interval will be selected for you. It will be a value faster than your active interval ( setIntervalSeconds(long)).

An interval of 0 is allowed, but not recommended, since location updates may be extremely fast on future implementations.

If setFastestInterval(long) is set slower than setIntervalSeconds(long), then your effective fastest interval is setIntervalSeconds(long).

Parameters:
fastestInterval - fastest interval for updates in milliseconds, exact