public class

LocationEvent

extends Event
java.lang.Object
   ↳ com.urbanairship.analytics.Event
     ↳ com.urbanairship.analytics.LocationEvent

Class Overview

This class captures all the necessary information for Urban Airship Analytics.

Summary

Nested Classes
enum LocationEvent.UpdateType An enum representing the location update type. 
[Expand]
Inherited Constants
From class com.urbanairship.analytics.Event
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
From class com.urbanairship.analytics.Event
From class java.lang.Object

Public Constructors

public LocationEvent (Location location, LocationEvent.UpdateType type, int userRequestedAccuracy, int updateDist, boolean isForeground)

Constructor for LocationEvent.

Parameters
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.

Public Methods

public String getType ()

The event type.

Returns
  • The event type.

Protected Methods

protected final JSONObject getEventData ()

Create the event data.

Returns
  • The event data.

protected int getPriority ()

The event's send priority.

Returns
  • The event's send priority.