java.lang.Object | |
↳ | com.urbanairship.analytics.location.ProximityRegion |
A ProximityRegion defines a proximity region with an identifier, major, minor and optional latitude, longitude and RSSI.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ProximityRegion(String proximityId, int major, int minor)
Constructor for creating proximity region.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Double |
getLatitude()
Gets the proximity region's latitude in degrees.
| ||||||||||
Double |
getLongitude()
Gets the proximity region's longitude in degrees.
| ||||||||||
int |
getMajor()
Gets the proximity region's major.
| ||||||||||
int |
getMinor()
Gets the proximity region's minor.
| ||||||||||
String |
getProximityId()
Gets the proximity region's proximity ID.
| ||||||||||
Integer |
getRssi()
Gets the proximity region's RSSI in dBm.
| ||||||||||
boolean |
isValid()
Validates the proximity region object.
| ||||||||||
void |
setCoordinates(Double latitude, Double longitude)
Sets the proximity region's latitude and longitude.
| ||||||||||
void |
setRssi(Integer rssi)
Sets the proximity region's received signal strength indication.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor for creating proximity region.
proximityId | The ID of the region object. |
---|---|
major | The major. |
minor | The minor. |
Gets the proximity region's longitude in degrees.
Gets the proximity region's major.
Gets the proximity region's minor.
Validates the proximity region object.
Sets the proximity region's latitude and longitude.
latitude | The proximity region's latitude. |
---|---|
longitude | The proximity region's longitude. |
Sets the proximity region's received signal strength indication.
rssi | The proximity region's received signal strength indication. |
---|