java.lang.Object | |
↳ | com.neomades.location.ProximityRegion |
This class is used to define the proximity region.
The region will be defined with a central location and a radius.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ProximityRegion(Location center, float radius)
Creates a new proximity region with the given center point, and radius in
meters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
containsLocation(Location location)
Checks whether the ProximityRegion object contains the central location point
passed in parameters.
| ||||||||||
Location |
getCenter()
Returns the central point of the region alert.
| ||||||||||
int |
getId()
Returns the id of the current ProximityRegion object.
| ||||||||||
float |
getRadius()
Returns the radius of the central point of the alert region, in meters.
| ||||||||||
void |
setId(int id)
Sets the id of the current ProximityRegion object
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new proximity region with the given center point, and radius in meters.
center | the center point |
---|---|
radius | the radius in meters |
NullPointerException | if the given center is null |
---|
Checks whether the ProximityRegion object contains the central location point passed in parameters.
location | the central location point. |
---|
Returns the central point of the region alert.
Returns the id of the current ProximityRegion object.
Returns the radius of the central point of the alert region, in meters.
Sets the id of the current ProximityRegion object
id | the id of the current Proximity Region object. |
---|