MBXEventsService_Internal.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXEventsServiceResponseCallback_Internal.h>
  4. #import <MapboxCommon/MBXFlushOperationResultCallback_Internal.h>
  5. @class MBXEvent;
  6. @class MBXEventsServerOptions;
  7. @class MBXTurnstileEvent;
  8. @protocol MBXEventsServiceObserver;
  9. NS_SWIFT_NAME(EventsService)
  10. __attribute__((visibility ("default")))
  11. @interface MBXEventsService : NSObject
  12. // This class provides custom init which should be called
  13. - (nonnull instancetype)init NS_UNAVAILABLE;
  14. // This class provides custom init which should be called
  15. + (nonnull instancetype)new NS_UNAVAILABLE;
  16. + (nonnull MBXEventsService *)getOrCreateForOptions:(nonnull MBXEventsServerOptions *)options __attribute((ns_returns_retained));
  17. - (void)registerObserverForObserver:(nonnull id<MBXEventsServiceObserver>)observer;
  18. - (void)unregisterObserverForObserver:(nonnull id<MBXEventsServiceObserver>)observer;
  19. - (void)sendTurnstileEventForTurnstileEvent:(nonnull MBXTurnstileEvent *)turnstileEvent
  20. callback:(nullable MBXEventsServiceResponseCallback)callback;
  21. - (void)sendEventForEvent:(nonnull MBXEvent *)event
  22. callback:(nullable MBXEventsServiceResponseCallback)callback;
  23. - (void)flushForCallback:(nullable MBXFlushOperationResultCallback)callback;
  24. @end