Class 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
    • Constructor Detail

      • WPSGeoFence

        public WPSGeoFence​(double latitude,
                           double longitude,
                           int radius,
                           WPSGeoFence.Type type,
                           long period)
        Parameters:
        latitude - of the center of the geofence zone
        longitude - of the center of the geofence zone
        radius - of the geofence zone, in meters
        type - of the geofence
        period - desired Wi-Fi period when the device is outside a WPS_GEOFENCE_ENTER geofence, or is inside a WPS_GEOFENCE_LEAVE geofence.
        A value of 0 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()
      • getPeriod

        public long getPeriod()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object