MBNNNavigatorObserver.h 1.1 KB

12345678910111213141516171819202122
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNNavigationStatusOrigin.h>
  4. @class MBNNNavigationStatus;
  5. NS_SWIFT_NAME(NavigatorObserver)
  6. @protocol MBNNNavigatorObserver
  7. /**
  8. * There are several cases when it can be called:
  9. * 1. After receiving new raw location via `updateLocation`
  10. * 2. After transition to active guidance via `setRoute/changeRouteLeg` methods (at least one raw location should be received before)
  11. * 3. Unconditionally if we have no raw locations for some significant amount of time (controlled via `unconditionalStatusPollingPatienceSeconds` and `unconditionalStatusPollingIntervalSeconds` fields in config)
  12. *
  13. * The call is scheduled using the `common::Scheduler` of the thread calling the `Navigator` constructor,
  14. * so it should be executed on the caller thread scheduler.
  15. * `common::Scheduler::GetCurrent()` is used for the scheduler getting, it must work on the caller thread.
  16. */
  17. - (void)onStatusForOrigin:(MBNNNavigationStatusOrigin)origin
  18. status:(nonnull MBNNNavigationStatus *)status;
  19. @end