Sets the delay between GEOFENCE_TRANSITION_ENTER and
GEOFENCE_TRANSITION_DWELLING in milliseconds. For example, if
loitering delay is set to 300000 ms (i.e. 5 minutes) the geofence
service will send a GEOFENCE_TRANSITION_DWELL alert roughly
5 minutes after user enters a geofence if the user stays inside the
geofence during this period of time. If the user exits from the
geofence in this amount of time, GEOFENCE_TRANSITION_DWELL
alert won't be sent.

Parameters

loiteringDelayMs

the delay for confirming dwelling, in
milliseconds

public
Geofence.BuildersetNotificationResponsiveness(int notificationResponsivenessMs)

Sets the best-effort notification responsiveness of the geofence.
Defaults to 0. Setting a big responsiveness value, for example 5
minutes, can save power significantly. However, setting a very small
responsiveness value, for example 5 seconds, doesn't necessarily mean
you will get notified right after the user enters or exits a
geofence: internally, the geofence might adjust the responsiveness
value to save power when needed.

Parameters

notificationResponsivenessMs

(milliseconds) defines the
best-effort description of how soon should the callback be
called when the transition associated with the Geofence is
triggered. For instance, if set to 300000 milliseconds the
callback will be called 5 minutes within entering or
exiting the geofence.

Sets the request ID of the geofence. Request ID is a string to
identify this geofence inside your application. When two geofences
with the same requestId are monitored, the new one will replace the
old one regardless the geographical region these two geofences
represent.