public static class IAGeofence.Builder
extends java.lang.Object
IAGeofence.| Constructor and Description |
|---|
Builder() |
Builder(IAGeofence geofence)
Builder pre-populated from given
IAGeofence |
| Modifier and Type | Method and Description |
|---|---|
IAGeofence |
build()
Create a
IAGeofence from this
IAGeofence.Builder. |
IAGeofence.Builder |
withEdges(java.util.List<double[]> edges)
Configures the IAGeofence with the list of unique WGS84 (latitude, longitude) points.
|
IAGeofence.Builder |
withFloor(int floor)
Configure the IAGeofence with the given
floor number. |
IAGeofence.Builder |
withId(java.lang.String id)
Configure the IAGeofence with the given
identification code. |
IAGeofence.Builder |
withName(java.lang.String name) |
IAGeofence.Builder |
withPayload(org.json.JSONObject payload)
Configure the IAGeofence with the given
payload. |
public Builder(IAGeofence geofence)
IAGeofencepublic Builder()
public IAGeofence.Builder withEdges(java.util.List<double[]> edges)
IAGeofence.getEdges()public IAGeofence.Builder withId(java.lang.String id)
identification code.IAGeofence.getId()public IAGeofence.Builder withName(java.lang.String name)
public IAGeofence.Builder withPayload(org.json.JSONObject payload) throws java.lang.IllegalArgumentException
payload. If this method is not called,
the IAGeofence is constructed with empty JSONObject as the payload.java.lang.IllegalArgumentExceptionIAGeofence.hasPayload(),
IAGeofence.getPayload()public IAGeofence.Builder withFloor(int floor)
floor number.IAGeofence.hasFloor(),
IAGeofence.getFloor()public IAGeofence build()
IAGeofence from this
IAGeofence.Builder.java.lang.IllegalArgumentException - If edges or id is not set