Properties

class Properties

A helper class for building attributes

Author

Umang Chamaria

Since

10.0.00

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.

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.

setNonInteractive
Link copied to clipboard
fun setNonInteractive(): Properties

Marks an event as non-interactive.