EngageEvent

public class EngageEvent: NSObject

Represents the event to be tracked using Engage.track(EngageEvent).

  • Initializes an event with the specified name

    Declaration

    Swift

    public init(aEventName : String)

    Parameters

    aEventName

    Name of event

  • Add an attribute to the event

    Declaration

    Swift

    public func addAttribute(name : String, value : AnyObject) -> EngageEvent

    Parameters

    name

    Name of the attribute

    value

    Value of the attribute

    Return Value

    EngageEvent object after adding the attribute