MBMEvent.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Generic Event type used to notify an `observer`. */
  4. NS_SWIFT_NAME(Event)
  5. __attribute__((visibility ("default")))
  6. @interface MBMEvent : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. - (nonnull instancetype)initWithType:(nonnull NSString *)type
  12. data:(nonnull id)data;
  13. /** Type of the event. */
  14. @property (nonatomic, readonly, nonnull, copy) NSString *type;
  15. /**
  16. * Generic container for an event's data (Object). By default, event data will contain `begin` key, whose value
  17. * is a number representing timestamp taken at the time of an event creation, in microseconds, since the epoch.
  18. * For an interval events, an optional `end` property will be present that represents timestamp taken at the time
  19. * of an event completion. Additional data properties are docummented by respective events.
  20. *
  21. * ``` text
  22. * Event data format (Object):
  23. * .
  24. * ├── begin - Number
  25. * └── end - optional Number
  26. * ```
  27. */
  28. @property (nonatomic, readonly, nonnull, copy) id data;
  29. @end