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 Airship Analytics.

Summary

Nested Classes
@interface LocationEvent.UpdateType  
Constants
int UPDATE_TYPE_CONTINUOUS Continuous location update type
int UPDATE_TYPE_SINGLE Single location update type
[Expand]
Inherited Constants
From class com.urbanairship.analytics.Event
Public Constructors
LocationEvent(Location location, int type, int userRequestedAccuracy, int updateDist, boolean isForeground)
Constructor for LocationEvent.
Public Methods
int getPriority()
The event's send priority.
String getType()
The event type.
Protected Methods
final JsonMap getEventData()
Create the event data.
[Expand]
Inherited Methods
From class com.urbanairship.analytics.Event
From class java.lang.Object

Constants

public static final int UPDATE_TYPE_CONTINUOUS

Continuous location update type

Constant Value: 0 (0x00000000)

public static final int UPDATE_TYPE_SINGLE

Single location update type

Constant Value: 1 (0x00000001)

Public Constructors

public LocationEvent (Location location, int 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 int getPriority ()

The event's send priority.

Returns
  • The event's send priority.

public String getType ()

The event type.

Returns
  • The event type.

Protected Methods

protected final JsonMap getEventData ()

Create the event data.

Returns
  • The event data.