| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Geofence |
build()
Construct and return a new
Geofence object from the Geofence.Builder's properties. |
Geofence.Builder |
setCircularRegion(double latitude,
double longitude,
float radius)
Sets the latitude, longitude, and radius for the
Geofence.Builder. |
Geofence.Builder |
setExpirationDuration(long durationMillis)
Sets the duration in millis for the
Geofence.Builder. |
Geofence.Builder |
setLoiteringDelay(int loiteringDelayMs)
Sets the loitering delay in millis for the
Geofence.Builder. |
Geofence.Builder |
setNotificationResponsiveness(int notificationResponsivenessMs)
Not yet implemented
|
Geofence.Builder |
setRequestId(java.lang.String requestId)
Sets the request id for the
Geofence.Builder. |
Geofence.Builder |
setTransitionTypes(int transitionTypes)
Sets the transition type for the
Geofence.Builder. |
public Geofence build()
Geofence object from the Geofence.Builder's properties.Geofence object.public Geofence.Builder setCircularRegion(double latitude, double longitude, float radius)
Geofence.Builder.latitude - in degrees.longitude - in degrees.radius - in meters.Geofence.Builder object.public Geofence.Builder setExpirationDuration(long durationMillis)
Geofence.Builder.durationMillis - duration in milliseconds.Geofence.Builder object.public Geofence.Builder setLoiteringDelay(int loiteringDelayMs)
Geofence.Builder. If transition type is set to
dwell then this value is used, otherwise it is ignored.loiteringDelayMs - duration in milliseconds.Geofence.Builder object.public Geofence.Builder setNotificationResponsiveness(int notificationResponsivenessMs)
public Geofence.Builder setRequestId(java.lang.String requestId)
Geofence.Builder.requestId - id to be used for geofence.Geofence.Builder object.public Geofence.Builder setTransitionTypes(int transitionTypes)
Geofence.Builder.transitionTypes - types to be used for geofence.Geofence.Builder object.