MBXLiveTrackingClientObserver_Internal.h 801 B

123456789101112131415161718192021
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXLiveTrackingState.h>
  4. @class MBXExpected<__covariant Value, __covariant Error>;
  5. @class MBXLocation;
  6. @class MBXLocationError;
  7. NS_SWIFT_NAME(LiveTrackingClientObserver)
  8. @protocol MBXLiveTrackingClientObserver
  9. /**
  10. * Called when a client has been started or stopped.
  11. *
  12. * @param state A new state of the client.
  13. * @param error An error if a client was stopped because of a failure.
  14. */
  15. - (void)onLiveTrackingStateChangedForState:(MBXLiveTrackingState)state
  16. error:(nullable MBXLocationError *)error;
  17. - (void)onLocationUpdateReceivedForLocationUpdate:(nonnull MBXExpected<NSArray<MBXLocation *> *, MBXLocationError *> *)locationUpdate;
  18. @end