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.SerializableGeofence- Since:
- 4.4
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWPSGeoFence.Handlestatic classWPSGeoFence.TypeGeofence 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 doublegetLatitude()doublegetLongitude()longgetPeriod()intgetRadius()WPSGeoFence.TypegetType()java.lang.StringtoString()
-
-
-
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_ENTERgeofence, or is inside aWPS_GEOFENCE_LEAVEgeofence.
A value of0can 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:
toStringin classjava.lang.Object
-
-