logEvent

fun logEvent(value: String, vars: JSONObject? = null)

Log a Marigold Mobile event with associated vars. If value is null or an empty string, no event will be generated.

Parameters

value

The event's name.

vars

The vars associated with this event.


fun logEvent(source: EventSource, value: String)

Log an event from a third party source. If value is null or an empty string, no event will be generated.

Parameters

source

An EventSource identifying the source of the third-party event.

value

The event's name.