public class ProximityKitGeofenceRegion extends Object implements ProximityRegion
This provides access to a geofence's location and size. As well as any custom attributes configured via Proximity Kit.
| Modifier and Type | Method and Description |
|---|---|
Map |
getAttributes()
Set of custom attributes configured for this geofence on Proximity Kit.
|
String |
getIdentifier()
Entity identifier for this geofence region.
|
Double |
getLatitude()
Getter for accessing this geofence's latitude.
|
Double |
getLongitude()
Getter for accessing this geofence's longitude.
|
String |
getName()
Getter for accessing this geofence's name.
|
Double |
getRadius()
Getter for accessing this geofence's configured radius.
|
String |
getRequestId()
Custom ID representation of this geofence to identify it in a map.
|
boolean |
regionEquals(ProximityKitGeofenceRegion otherRegion)
Returns whether the supplied
ProximityKitGeofenceRegion is equivalent to this one |
String |
toString()
Returns the string representation of this geofence region.
|
public Double getLatitude()
public Double getLongitude()
public Double getRadius()
public String getRequestId()
public Map getAttributes()
getAttributes in interface ProximityRegionpublic String getIdentifier()
This uniquely identifies the geofence region within the kit.
getIdentifier in interface ProximityRegionnull if it wasn't provided by the kitpublic String getName()
getName in interface ProximityRegionString of the geofence's name.public boolean regionEquals(ProximityKitGeofenceRegion otherRegion)
ProximityKitGeofenceRegion is equivalent to this oneotherRegion - The ProximityKitGeofenceRegion to be compared to this onetrue if the two geofence regions have the same latitude, longitude, and
radius; false otherwise