|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.TwentyCodes.android.SkyHook.SkyHook
public class SkyHook
this calls will be used to create skyhook object that uses an listener interface to interact with the rest of location ringer
| Field Summary | |
|---|---|
static int |
DONE_MESSAGE
|
static int |
ERROR_MESSAGE
|
static int |
LOCATION_MESSAGE
|
static String |
REALM
|
static String |
TAG
|
static String |
USERNAME
|
static String |
USERNAME_FOR_TESTING
|
| Constructor Summary | |
|---|---|
SkyHook(Context context)
Constructors a new skyhook object |
|
SkyHook(Context context,
long period)
Constructors a new skyhook object |
|
| Method Summary | |
|---|---|
void |
getLoctaion()
request current user location, note that the listeners onLocationChanged() will be call multiple times. |
void |
getUpdates()
Attempts to register the the listener for periodic updates |
void |
removeUpdates()
Removes any current registration for location updates of the current activity with the given LocationListener. |
void |
setLocationListener(XPSLocationListener listener)
Used for receiving notifications from SkyHook when the location has changed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TAG
public static final String USERNAME
public static final String USERNAME_FOR_TESTING
public static final String REALM
public static final int LOCATION_MESSAGE
public static final int ERROR_MESSAGE
public static final int DONE_MESSAGE
| Constructor Detail |
|---|
public SkyHook(Context context)
context -
public SkyHook(Context context,
long period)
context - period - between location updates in milliseconds| Method Detail |
|---|
public void getLoctaion()
public void getUpdates()
public void removeUpdates()
listener - public void setLocationListener(XPSLocationListener listener)
listener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||