AccountEventTemplate
Account event template. Use with com.urbanairship.analytics.CustomEvent.newBuilder or com.urbanairship.analytics.customEvent to create a custom event with account template properties.
Example (Kotlin):
customEvent(
AccountEventTemplate.Type.REGISTERED,
AccountEventTemplate.Properties(category = "premium")
) {
setEventValue(9.99)
}.track()Content copied to clipboard
Example (Java):
AccountEventTemplate.Properties properties = AccountEventTemplate.Properties.newBuilder()
.setCategory("premium")
.build();
CustomEvent.newBuilder(AccountEventTemplate.Type.REGISTERED, properties)
.setEventValue(9.99)
.build()
.track();Content copied to clipboard
See also
Types
Link copied to clipboard
class Properties(val userId: String? = null, val category: String? = null, val type: String? = null, val isLTV: Boolean = false) : JsonSerializable
Link copied to clipboard