Properties

class Properties

A helper class for building attributes

Author

Umang Chamaria

Since

10.0.00 Date: 2020/11/13

Constructors

Properties
Link copied to clipboard
fun Properties()

Functions

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

Add an attribute with value of type Object.

Note: This API only accepts the below data-types:

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

addDateIso
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.

getPayload
Link copied to clipboard
fun getPayload(): PayloadBuilder
setNonInteractive
Link copied to clipboard
fun setNonInteractive(): Properties

Marks an event as non-interactive.