Event

public enum Event : Equatable

An event fired by the SDK and available to any EventListener that is added to the SDK

  • A screen view event with an associated name

    Declaration

    Swift

    case screenView(name: String, timestamp: TimeInterval = Date().timeIntervalSince1970 * 1000)
  • An error event

    Declaration

    Swift

    case error(name: String, timestamp: TimeInterval = Date().timeIntervalSince1970 * 1000)
  • A user action

    Declaration

    Swift

    case userAction(name: String, timestamp: TimeInterval = Date().timeIntervalSince1970 * 1000)
  • A string representation of the event type (for convenience since Event cannot have String raw type)

    Declaration

    Swift

    public var stringRepresentation: String { get }
  • Test whether two events are equivalent Parameters: - lhs: The first event to compare - rhs: The second event to compare

    Declaration

    Swift

    public static func == (lhs: Event, rhs: Event) -> Bool