public class

LinearGeofence

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

Class Overview

This class defines a linear geofence object. A linear geofence is defined by a list of LatLongPoint points in the order given by the administrator. A fence is constructed based on the points specified by the administrator along with an administrator-defined width.

Since
API level 6
MDM 4.0

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public List<LatLongPoint> points List of LatLongPoint points that form a series of line segments.
public double width Width in meters of the linear geofence.
[Expand]
Inherited Fields
From class com.samsung.android.knox.location.Geofence
Public Constructors
LinearGeofence(List<LatLongPoint> points, double width)
Constructor to create a LinearGeofence object with administrator input points.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public List<LatLongPoint> points

Since: API level 6

List of LatLongPoint points that form a series of line segments.

Since
API level 6
MDM 4.0

public double width

Since: API level 6

Width in meters of the linear geofence. The width of a linear geofence specifies the distance in meters above and below the created line to calculate to the area that is considered part of the created geofence.

Since
API level 6
MDM 4.0

Public Constructors

public LinearGeofence (List<LatLongPoint> points, double width)

Since: API level 6

Constructor to create a LinearGeofence object with administrator input points.

Parameters
points List of LatLongPoint points
width Width in meters
Since
API level 6
MDM 4.0