public static class IAGeofenceRequest.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
IAGeofenceRequest |
build()
Create a
IAGeofenceRequest from this
IAGeofenceRequest.Builder . |
IAGeofenceRequest.Builder |
withCloudGeofences(boolean enabled)
Determine if cloud geofences (static) should be monitored in addition to the run-time
(dynamic) geofences defined in this request.
|
IAGeofenceRequest.Builder |
withGeofence(IAGeofence geofence)
Adds a geofence to be monitored for the
IAGeofenceRequest . |
IAGeofenceRequest.Builder |
withGeofences(java.util.List<IAGeofence> geofences)
Adds geofences to be monitored for the
IAGeofenceRequest . |
IAGeofenceRequest.Builder |
withInitialTrigger(int initialTrigger)
Deprecated.
|
public IAGeofenceRequest.Builder withGeofences(java.util.List<IAGeofence> geofences)
IAGeofenceRequest
. If geofences have
been added before, calling this method overrides the previous valuesgeofences
- List of geofences
to be monitoredpublic IAGeofenceRequest.Builder withGeofence(IAGeofence geofence)
IAGeofenceRequest
. If geofences have
been added before, calling this method overrides the previous valuesgeofence
- Geofence
to be monitored@Deprecated public IAGeofenceRequest.Builder withInitialTrigger(int initialTrigger)
public IAGeofenceRequest.Builder withCloudGeofences(boolean enabled)
enabled
- if true, cloud geofences are monitored, if false (default) they are notpublic IAGeofenceRequest build()
IAGeofenceRequest
from this
IAGeofenceRequest.Builder
.java.lang.IllegalArgumentException
- if no geofences set and static geofences not includedIAGeofenceRequest