public class

PolygonalGeofence

extends Geofence
implements Parcelable Serializable
java.lang.Object
   ↳ com.samsung.android.knox.location.Geofence
     ↳ com.samsung.android.knox.location.PolygonalGeofence

Class Overview

This class defines a polygonal geofence object. A polygonal geofence is defined by list of LatLongPoint points in the order given by the administrator. Based on the order in which points are specified, edges are constructed between consecutive points to form a convex, concave or self intersecting polygon.

Since
API level 6
MDM 4.0

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public double graceDistance Optional grace distance value in meters.
public List<LatLongPoint> points List of LatLongPoint points which form the vertices of the polygon.
[Expand]
Inherited Fields
From class com.samsung.android.knox.location.Geofence
Public Constructors
PolygonalGeofence(List<LatLongPoint> points, double graceDistance)
Constructor to create a PolygonalGeofence object with points listed by the administrator.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public double graceDistance

Since: API level 6

Optional grace distance value in meters. An outer perimeter or boundary is created around the existing polygon based on the grace distance value entered. If the administrator does not enter grace distance value, it is assigned a default value of zero meters. The device is considered to be within the geofence if it falls outside the boundary of the original geofence but within the boundary of the area created by specifying the grace distance.

Since
API level 6
MDM 4.0

public List<LatLongPoint> points

Since: API level 6

List of LatLongPoint points which form the vertices of the polygon.

Since
API level 6
MDM 4.0

Public Constructors

public PolygonalGeofence (List<LatLongPoint> points, double graceDistance)

Since: API level 6

Constructor to create a PolygonalGeofence object with points listed by the administrator.

Parameters
points List of LatLongPoint points specified by the administrator
graceDistance Distance in meters
Since
API level 6
MDM 4.0