public class KitOverlay extends Object
Constructor and Description |
---|
KitOverlay()
Deprecated.
Not for public use - no replacement. As of 0.12.0 this method could possibly be
retained only as a private method.
|
Modifier and Type | Method and Description |
---|---|
static KitOverlay |
fromJson(JSONObject json)
Create an overlay from the provided JSON.
|
Map |
getAttributes() |
String |
getIdentifier()
Entity identifier for this overlay.
|
Double |
getLatitude() |
Double |
getLongitude() |
String |
getName() |
Double |
getRadius() |
ProximityKitGeofenceRegion |
toGeofence() |
@Deprecated public KitOverlay()
public Map getAttributes()
public String getIdentifier()
This uniquely identifies the overlay within the kit.
null
if it wasn't provided by the kitpublic Double getLatitude()
public Double getLongitude()
public Double getRadius()
public String getName()
public ProximityKitGeofenceRegion toGeofence()
public static KitOverlay fromJson(JSONObject json) throws JSONException
{ "name": "Optional: Any Name", "center": [-90.0, 180.0], "radius": 1.0, "attributes": { "key1": "value1", "key2": "value2" } }
json
- JSON object containing the overlay fields.KitOverlay
with fields matching the provided JSON values.JSONException
- If there was an error processing the JSON or if either of the required fields
"center" and "radius" were not present or contained invalid values.