java.lang.Object | |
↳ | android.hardware.location.GeofenceHardwareRequest |
This class represents the characteristics of the geofence.
Use this in conjunction with GeofenceHardware
APIs.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a circular geofence.
| |||||||||||
Returns the last transition of this geofence.
| |||||||||||
Returns the latitude of this geofence.
| |||||||||||
Returns the longitude of this geofence.
| |||||||||||
Returns transitions monitored for this geofence.
| |||||||||||
Returns the notification responsiveness of this geofence.
| |||||||||||
Returns the radius of this geofence.
| |||||||||||
Returns the unknownTimer of this geofence.
| |||||||||||
Set the last known transition of the geofence.
| |||||||||||
Set the transitions to be monitored.
| |||||||||||
Set the notification responsiveness of the geofence.
| |||||||||||
Set the unknown timer for this geofence.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a circular geofence.
latitude | Latitude of the geofence |
---|---|
longitude | Longitude of the geofence |
radius | Radius of the geofence (in meters) |
Returns transitions monitored for this geofence.
Returns the notification responsiveness of this geofence.
Set the last known transition of the geofence.
lastTransition | The current state of the geofence. Can be one of
GEOFENCE_ENTERED , GEOFENCE_EXITED ,
GEOFENCE_UNCERTAIN .
|
---|
Set the transitions to be monitored.
monitorTransitions | Bitwise OR of GEOFENCE_ENTERED ,
GEOFENCE_EXITED , GEOFENCE_UNCERTAIN
|
---|
Set the notification responsiveness of the geofence.
notificationResponsiveness | (milliseconds) Defines the best-effort description
of how soon should the callback be called when the transition
associated with the Geofence is triggered. For instance, if
set to 1000 millseconds with GEOFENCE_ENTERED ,
the callback will be called 1000 milliseconds within entering
the geofence.
|
---|
Set the unknown timer for this geofence.
unknownTimer | The time limit after which the
GEOFENCE_UNCERTAIN transition
should be triggered. This paramter is defined in milliseconds.
|
---|