Builder

class Builder(@Size(min = 1, max = 255) val eventName: String)

Builder class for com.urbanairship.analytics.CustomEvent Objects.

Constructors

Link copied to clipboard
constructor(@Size(min = 1, max = 255) eventName: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addProperty(@Size(min = 1) name: String, value: Boolean): CustomEvent.Builder
fun addProperty(@Size(min = 1) name: String, value: Double): CustomEvent.Builder
fun addProperty(@Size(min = 1) name: String, value: Int): CustomEvent.Builder
fun addProperty(@Size(min = 1) name: String, value: Long): CustomEvent.Builder
fun addProperty(@Size(min = 1) name: String, @Size(min = 1) value: String): CustomEvent.Builder

Adds a custom property to the event.

Link copied to clipboard

Builds the custom event.

Link copied to clipboard

Sets the event value.

Sets the event value from a String.

Link copied to clipboard
fun setInteraction(@Size(min = 1, max = 255) interactionType: String?, @Size(min = 1, max = 255) interactionId: String?): CustomEvent.Builder

Sets the interaction type and ID for the event.

Link copied to clipboard

Sets the interaction type and ID from a Message Center message.

Link copied to clipboard

Sets a JsonMap representing the event properties.

Link copied to clipboard
fun setTransactionId(@Size(min = 1, max = 255) transactionId: String?): CustomEvent.Builder

Sets the transaction ID.