|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.veriplace.client.LocationMode
public class LocationMode
Constants representing the allowable location modes. These can be used with
GetLocationAPI methods that take a LocationOptions parameter.
| Field Summary | |
|---|---|
static java.lang.String |
AREA
An approximate location request with lower latency and cost. |
static java.lang.String |
FREEDOM
A request that queries previously cached locations, and will never trigger a new GPS fix. |
static java.lang.String |
ZOOM
A high-accuracy request that may have higher latency and cost. |
| Constructor Summary | |
|---|---|
LocationMode()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ZOOM
public static final java.lang.String AREA
public static final java.lang.String FREEDOM
GetLocationBillingDeclinedException if your
developer account does not have a positive balance.
For Veriplace-enabled smartphones, an attempt to generate a new cached location occurs at
regular intervals. A new location is also generated if a different application locates the
same user using an on-demand mode (ZOOM or AREA).
If you make a FREEDOM mode request when you have already queried the most recent location
and there isn't yet a new location, you will get a PositionFailureException, whose
PositionFailureException.getCachedLocation() method will return the most recent
cached location. To suppress this exception and just get the most recent location at all
times, you can configure the Client with a custom LocationFilter, or, more
simply, set the property DefaultClientFactory.USE_LAST_KNOWN_LOCATION
to "true".
| Constructor Detail |
|---|
public LocationMode()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||