| Constructor and Description |
|---|
Builder() |
Builder(IAPOI poi)
Builder pre-populated from given
IAPOI |
| Modifier and Type | Method and Description |
|---|---|
IAPOI |
build()
Create a
IAPOI from this
IAPOI.Builder. |
IAPOI.Builder |
withFloor(int floor)
Configure the POI with the given
floor number. |
IAPOI.Builder |
withId(java.lang.String id)
Configure the POI with the given
identification code. |
IAPOI.Builder |
withLocation(IALatLng location)
Configures the POI with the given WGS84 (latitude, longitude) coordinate.
|
IAPOI.Builder |
withName(java.lang.String name)
Configure the POI with the given name.
|
IAPOI.Builder |
withPayload(org.json.JSONObject payload)
Configure the POI with the given
payload. |
public IAPOI.Builder withLocation(IALatLng location)
IAPOI.getLocation()public IAPOI.Builder withId(java.lang.String id)
identification code.
This is required.IAPOI.getId()public IAPOI.Builder withName(java.lang.String name)
IAPOI.getName()public IAPOI.Builder withPayload(org.json.JSONObject payload) throws java.lang.IllegalArgumentException
payload. If this method is not called,
the IAPOI is constructed with empty JSONObject as the payload.java.lang.IllegalArgumentExceptionIAPOI.hasPayload(),
IAPOI.getPayload()public IAPOI.Builder withFloor(int floor)
floor number.
This is optional, default is floor 0.IAPOI.getFloor()public IAPOI build()
IAPOI from this
IAPOI.Builder.java.lang.IllegalArgumentException - If a required parameter is not set