MBMEvent


@interface MBMEvent : NSObject

Generic Event type used to notify an observer.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithType:(nonnull NSString *)type
                                    data:(nonnull id)data;

    Swift

    init(type: String, data: Any)
  • Type of the event.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *type;

    Swift

    var type: String { get }
  • Generic container for an event’s data (Object). By default, event data will contain begin key, whose value is a number representing timestamp taken at the time of an event creation, in microseconds, since the epoch. For an interval events, an optional end property will be present that represents timestamp taken at the time of an event completion. Additional data properties are docummented by respective events.

     Event data format (Object):
     .
     ├── begin - Number
     └── end - optional Number
    

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) id data;

    Swift

    var data: Any { get }