TrackerPayload

Stores many key - pair values. This class is used by the tracker to add various fields and entities to tracked events.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun add(key: String, value: Any?)
open override fun add(key: String, value: String?)

Add a basic parameter.

Link copied to clipboard
open override fun addMap(map: Map<String, Any?>)

Add all the mappings from the specified map. The effect is the equivalent to that of calling add(String key, Object value) for each mapping for each key.

open override fun addMap(map: Map<*, *>, base64_encoded: Boolean, type_encoded: String, type_no_encoded: String)

Add a map to the Payload with a key dependent on the base 64 encoding option you choose using the two keys provided.

Link copied to clipboard
open override fun toString(): String

Returns the Payload as a string. This is essentially the toString from the ObjectNode used to store the Payload.

Properties

Link copied to clipboard
open override val byteSize: Long

Returns the byte size of a payload.

Link copied to clipboard
open override val map: HashMap<String, Any>

Returns the Payload as a HashMap.