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()

Example (Java):

AccountEventTemplate.Properties properties = AccountEventTemplate.Properties.newBuilder()
.setCategory("premium")
.build();

CustomEvent.newBuilder(AccountEventTemplate.Type.REGISTERED, properties)
.setEventValue(9.99)
.build()
.track();

See also

Constructors

Link copied to clipboard
protected constructor()

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