Package com.skyhookwireless.wps
Class WPSGeoFence
- java.lang.Object
-
- com.skyhookwireless.wps.WPSGeoFence
-
- All Implemented Interfaces:
java.io.Serializable
public class WPSGeoFence extends java.lang.Object implements java.io.Serializable
Geofence- Since:
- 4.4
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WPSGeoFence.Handle
static class
WPSGeoFence.Type
Geofence type
-
Constructor Summary
Constructors Constructor Description WPSGeoFence(double latitude, double longitude, int radius, WPSGeoFence.Type type, long period)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
double
getLongitude()
long
getPeriod()
int
getRadius()
WPSGeoFence.Type
getType()
java.lang.String
toString()
-
-
-
Constructor Detail
-
WPSGeoFence
public WPSGeoFence(double latitude, double longitude, int radius, WPSGeoFence.Type type, long period)
- Parameters:
latitude
- of the center of the geofence zonelongitude
- of the center of the geofence zoneradius
- of the geofence zone, in meterstype
- of the geofenceperiod
- desired Wi-Fi period when the device is outside aWPS_GEOFENCE_ENTER
geofence, or is inside aWPS_GEOFENCE_LEAVE
geofence.
A value of0
can be used if no preferred period is desired (for this geofence).
-
-
Method Detail
-
getLatitude
public double getLatitude()
-
getLongitude
public double getLongitude()
-
getRadius
public int getRadius()
-
getType
public WPSGeoFence.Type getType()
-
getPeriod
public long getPeriod()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-