java.lang.Object | ||
↳ | com.urbanairship.analytics.Event | |
↳ | com.urbanairship.analytics.LocationEvent |
This class captures all the necessary information for Urban Airship
Analytics
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | LocationEvent.UpdateType | An enum representing the location update type. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LocationEvent(Location location, LocationEvent.UpdateType type, int userRequestedAccuracy, int updateDist, boolean isForeground)
Constructor for LocationEvent.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getType()
The event type.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
final JSONObject |
getEventData()
Create the event data.
| ||||||||||
int |
getPriority()
The event's send priority.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor for LocationEvent.
location | An instance of Location. |
---|---|
type | The location's UpdateType. |
userRequestedAccuracy | The associated user-requested location accuracy. |
updateDist | The associated update distance. |
isForeground | If the location was recorded when the app was foregrounded or not. |
The event's send priority.