java.lang.Object | ||
↳ | com.urbanairship.analytics.Event | |
↳ | com.urbanairship.analytics.CustomEvent |
A class that represents a custom event for the application.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | CustomEvent.Builder | Builder class for CustomEvent Objects. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONVERSION_METADATA | Hard conversion send metadata key. | |||||||||
String | CONVERSION_SEND_ID | Hard conversion send id key. | |||||||||
String | EVENT_NAME | The event name key. | |||||||||
String | EVENT_VALUE | The event value key. | |||||||||
String | INTERACTION_ID | The interaction ID key. | |||||||||
String | INTERACTION_TYPE | The interaction type key. | |||||||||
String | LAST_RECEIVED_METADATA | Last send metadata key. | |||||||||
int | MAX_CHARACTER_LENGTH | The max size for any String event value. | |||||||||
int | MAX_TOTAL_PROPERTIES_SIZE | The max size of total properties in bytes. | |||||||||
String | MCRAP_TRANSACTION_TYPE | Rich Push Message interaction type. | |||||||||
String | PROPERTIES | The custom properties key. | |||||||||
String | TEMPLATE_TYPE | The template type key. | |||||||||
String | TRANSACTION_ID | The event transaction id key. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.analytics.Event
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getEventName()
Gets the event name.
| ||||||||||
BigDecimal |
getEventValue()
Gets the event value.
| ||||||||||
String |
getInteractionId()
Gets the interaction ID.
| ||||||||||
String |
getInteractionType()
Gets the interaction type.
| ||||||||||
JsonMap |
getProperties()
Gets the event properties.
| ||||||||||
String |
getTransactionId()
Gets the transaction ID.
| ||||||||||
final String |
getType()
The event type.
| ||||||||||
boolean |
isValid()
Validates the Event.
| ||||||||||
static CustomEvent.Builder |
newBuilder(String name)
Creates a new CustomEvent builder.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
CustomEvent |
track()
Adds the event to Analytics.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.analytics.Event
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
Hard conversion send metadata key.
Hard conversion send id key.
The interaction type key.
Last send metadata key.
The max size for any String event value.
The max size of total properties in bytes.
Rich Push Message interaction type.
The event transaction id key.
Validates the Event.
Creates a new CustomEvent builder.
name | The event name |
---|
Returns the objects represented as a JsonValue.