| java.lang.Object | |
| ↳ | com.google.android.gms.location.GeofencingRequest.Builder |
A builder that builds GeofencingRequest.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a geofence to be monitored by geofencing service.
| |||||||||||
Adds all the geofences in the given list to be monitored by geofencing service.
| |||||||||||
Builds the
GeofencingRequest object.
| |||||||||||
Sets the geofence notification behavior at the moment when the geofences are added.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||||||||||||||||||||||||
Adds a geofence to be monitored by geofencing service.
| geofence | the geofence to be monitored. The geofence must be built with
Geofence.Builder. |
|---|
| IllegalArgumentException | if the geofence is not built with
Geofence.Builder. |
|---|---|
| NullPointerException | if the given geofence is null |
Adds all the geofences in the given list to be monitored by geofencing service.
| geofences | the geofences to be monitored. The geofences in the list must be built
with Geofence.Builder. |
|---|
| IllegalArgumentException | if the geofence is not built with
Geofence.Builder.
|
|---|
Builds the GeofencingRequest object.
GeofencingRequest object| IllegalArgumentException | if no geofence has been added to this list |
|---|
Sets the geofence notification behavior at the moment when the geofences are added. The
default behavior is INITIAL_TRIGGER_ENTER and
INITIAL_TRIGGER_DWELL.
| initialTrigger | the notification behavior. It's a bit-wise of
INITIAL_TRIGGER_ENTER and/or
INITIAL_TRIGGER_EXIT and/or
INITIAL_TRIGGER_DWELL. |
|---|