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 IAGeofenceRequest
build()
Create aIAGeofenceRequest
from thisIAGeofenceRequest.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 theIAGeofenceRequest
.IAGeofenceRequest.Builder
withGeofences(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 ofgeofences
to 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
-Geofence
to 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 aIAGeofenceRequest
from thisIAGeofenceRequest.Builder
.- Throws:
IllegalArgumentException
- if no geofences set and static geofences not included- See Also:
IAGeofenceRequest
-
-