UAEvent

@interface UAEvent : NSObject

This base class encapsulates analytics events.

  • The time the event was created.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull time;

    Swift

    var time: String { get }
  • The unique event ID.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull eventID;

    Swift

    var eventID: String { get }
  • The event’s data.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSDictionary *_Nonnull data;

    Swift

    var data: [AnyHashable : Any] { get }
  • The event’s type.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull eventType;

    Swift

    var eventType: String { get }
  • Checks if the event is valid. Invalid events will be dropped.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Bool

    Return Value

    YES if the event is valid.