|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.veriplace.client.PollingAPI
public class PollingAPI
Interface for querying user location changes in bulk, using a version of
the Simple Update Protocol. To access an instance of this class, use
Client.getPollingAPI().
For applications that wish to receive location updates at regular intervals,
consider using PollingManager, which calls
PollingAPI from a background thread and pushes the results to a listener.
| Method Summary | |
|---|---|
int |
getPeriodSeconds()
|
Location |
getUpdateLocation(LocationUpdateReference update,
Token accessToken,
java.lang.Integer timeout)
Retrieves information about a specific location update. |
LocationUpdates |
getUpdates(java.lang.Integer timeout)
Retrieves information about recent location updates for all users that this application can locate, using the client's application-specific access token. |
LocationUpdates |
getUpdates(Token accessToken,
java.lang.Integer timeout)
Retrieves information about recent location updates for all users that this application can locate, specifying the application access token. |
void |
setPeriodSeconds(int periodSeconds)
Specifies the interval, in seconds, between updates to the location change list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int getPeriodSeconds()
public void setPeriodSeconds(int periodSeconds)
public LocationUpdates getUpdates(java.lang.Integer timeout)
throws UnexpectedException
timeout - the maximum number of seconds to wait, or null for no
timeout
LocationUpdates object containing the query results
UnexpectedException - if there was an unexpected OAuth error or
I/O error
public LocationUpdates getUpdates(Token accessToken,
java.lang.Integer timeout)
throws UnexpectedException
timeout - the maximum number of seconds to wait, or null for no
timeout
LocationUpdates object containing the query results
UnexpectedException - if there was an unexpected OAuth error or
I/O error
public Location getUpdateLocation(LocationUpdateReference update,
Token accessToken,
java.lang.Integer timeout)
throws GetLocationNotPermittedException,
PositionFailureException,
UnexpectedException
update - a LocationUpdateReference object returned by a
previous call to getUpdates(java.lang.Integer)accessToken - an access token permitting the user to be locatedtimeout - the maximum number of seconds to wait, or null for no
timeout
PositionFailureException - if the result of this location update
was an error
GetLocationNotPermittedException - if the access token does not
allow getting locations for this user
UnexpectedException - if there was an unexpected OAuth error or
I/O error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||