java.lang.Object | |
↳ | com.urbanairship.analytics.AccountEventTemplate |
A class that represents a custom account event template for the application.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACCOUNT_EVENT_TEMPLATE | The account event template type. | |||||||||
String | LOGGED_IN | The logged in event name. | |||||||||
String | LOGGED_OUT | The logged out event name. | |||||||||
String | REGISTERED_ACCOUNT_EVENT | The registered account event name. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CustomEvent |
createEvent()
Creates the custom account event.
| ||||||||||
static AccountEventTemplate |
newLoggedInTemplate()
Creates a registered account event template with logged in as template id.
| ||||||||||
static AccountEventTemplate |
newLoggedOutTemplate()
Creates a registered account event template with logged out as template id.
| ||||||||||
static AccountEventTemplate |
newRegisteredTemplate()
Creates a registered account event template.
| ||||||||||
AccountEventTemplate |
setCategory(String category)
Set the category.
| ||||||||||
AccountEventTemplate |
setTransactionId(String transactionId)
Set the transaction ID.
| ||||||||||
AccountEventTemplate |
setType(String type)
Set the type.
| ||||||||||
AccountEventTemplate |
setUserId(String userId)
Set the user id.
| ||||||||||
AccountEventTemplate |
setValue(int value)
Sets the event value.
| ||||||||||
AccountEventTemplate |
setValue(double value)
Sets the event value.
| ||||||||||
AccountEventTemplate |
setValue(String value)
Sets the event value.
| ||||||||||
AccountEventTemplate |
setValue(BigDecimal value)
Sets the event value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The account event template type.
The registered account event name.
Creates the custom account event.
Creates a registered account event template with logged in as template id.
Creates a registered account event template with logged out as template id.
Creates a registered account event template.
Set the category.
If the category exceeds 255 characters it will cause the event to be invalid.
category | The category as a string. |
---|
Set the transaction ID.
If the transaction ID exceeds 255 characters it will cause the event to be invalid.
transactionId | The event's transaction ID as a string. |
---|
Set the type.
type | The type as a string. |
---|
Set the user id.
userId | The user id as a string. |
---|
Sets the event value.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
value | The event's value as an int. |
---|
Sets the event value.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
value | The event's value as a double. Must be a number. |
---|
NumberFormatException | if the value is infinity or not a number. |
---|
Sets the event value.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
value | The event's value as a string. Must contain valid string representation of a big decimal. |
---|
NumberFormatException | if the event value does not contain a valid string representation of a big decimal. |
---|
Sets the event value.
The event's value will be accurate 6 digits after the decimal. The number must fall in the range [-2^31, 2^31-1]. Any value outside that range will cause the event to be invalid.
value | The event's value as a BigDecimal. |
---|