toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-core
/
com.urbanairship.analytics
/
Event
Event
abstract
class
Event
This abstract class encapsulates analytics events.
Inheritors
CustomEvent
RegionEvent
Members
Constructors
Event
Link copied to clipboard
constructor
(
timeMilliseconds
:
Long
)
Constructor for Event.
constructor
(
)
Constructor for Event using the current time.
Types
Priority
Link copied to clipboard
@
Retention
(
value
=
RetentionPolicy.SOURCE
)
annotation class
Priority
Properties
event
Id
Link copied to clipboard
@get:
NonNull
val
eventId
:
String
HIGH_PRIORITY
Link copied to clipboard
val
HIGH_PRIORITY
:
Int
=
2
High priority event.
LOW_PRIORITY
Link copied to clipboard
val
LOW_PRIORITY
:
Int
=
0
Low priority event.
NORMAL_PRIORITY
Link copied to clipboard
val
NORMAL_PRIORITY
:
Int
=
1
Normal priority event.
Functions
get
Connection
Sub
Type
Link copied to clipboard
@
NonNull
open
fun
getConnectionSubType
(
)
:
String
Returns the connection subtype.
get
Connection
Type
Link copied to clipboard
@
NonNull
open
fun
getConnectionType
(
)
:
String
Returns the connection type.
get
Priority
Link copied to clipboard
open
fun
getPriority
(
)
:
Int
The event's send priority.
get
Time
Link copied to clipboard
@
NonNull
open
fun
getTime
(
)
:
String
Returns the timestamp associated with the event.
is
Valid
Link copied to clipboard
open
fun
isValid
(
)
:
Boolean
Validates the Event.