Package com.indooratlas.android.sdk
Class IAGeofenceRequest.Builder
- java.lang.Object
-
- com.indooratlas.android.sdk.IAGeofenceRequest.Builder
-
- Enclosing class:
- IAGeofenceRequest
public static class IAGeofenceRequest.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAGeofenceRequestbuild()Create aIAGeofenceRequestfrom thisIAGeofenceRequest.Builder.IAGeofenceRequest.BuilderwithCloudGeofences(boolean enabled)Determine if cloud geofences (static) should be monitored in addition to the run-time (dynamic) geofences defined in this request.IAGeofenceRequest.BuilderwithGeofence(IAGeofence geofence)Adds a geofence to be monitored for theIAGeofenceRequest.IAGeofenceRequest.BuilderwithGeofences(List<IAGeofence> geofences)Adds geofences to be monitored for theIAGeofenceRequest.
-
-
-
Method Detail
-
withGeofences
public IAGeofenceRequest.Builder withGeofences(List<IAGeofence> geofences)
Adds geofences to be monitored for theIAGeofenceRequest. If geofences have been added before, calling this method overrides the previous values- Parameters:
geofences- List ofgeofencesto be monitored
-
withGeofence
public IAGeofenceRequest.Builder withGeofence(IAGeofence geofence)
Adds a geofence to be monitored for theIAGeofenceRequest. If geofences have been added before, calling this method overrides the previous values- Parameters:
geofence-Geofenceto be monitored
-
withCloudGeofences
public 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.- Parameters:
enabled- if true, cloud geofences are monitored, if false (default) they are not
-
build
public IAGeofenceRequest build()
Create aIAGeofenceRequestfrom thisIAGeofenceRequest.Builder.- Throws:
IllegalArgumentException- if no geofences set and static geofences not included- See Also:
IAGeofenceRequest
-
-