Properties

A helper class for building attributes

Author

Umang Chamaria

Since

10.0.00

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addAttribute(attributeName: String, attributeValue: Any?): Properties

Add an attribute with value of type Object.

Link copied to clipboard
fun addDateEpoch(attributeName: String, attributeValue: Long): Properties

Add an attribute with value of type date. The input value should be in Epoch(milliseconds)

Link copied to clipboard
fun addDateIso(attributeName: String, attributeValue: String): Properties

Add an attribute with value of type date. The input string should in ISO 8601 format.

Link copied to clipboard
@VisibleForTesting(otherwise = 3)
fun getPayload(): JsonObject

Builds and returns the event attributes in the format it needs to be sent to backend.

Link copied to clipboard

Marks an event as non-interactive.