AmplitudeBaseEvent

public struct AmplitudeBaseEvent : Encodable, Equatable

The AmplitudeBaseEvent struct represents an event with various properties and implements encoding for serialization.

  • Undocumented

    See more

    Declaration

    Swift

    public enum CodingKeys : String, CodingKey
  • Initializes a new instance of the AmplitudeBaseEvent struct.

    Declaration

    Swift

    public init(eventType: String,
                eventProperties: [String: Any]? = nil,
                userProperties: [String: Any]? = nil,
                eventOptions: AmplitudeEventOptions)
  • Encodes the event into the provided encoder.

    Throws

    An error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.

  • Declaration

    Swift

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