MBNNFallbackVersionsObserver.h 1.0 KB

1234567891011121314151617181920
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. NS_SWIFT_NAME(FallbackVersionsObserver)
  4. @protocol MBNNFallbackVersionsObserver
  5. /**
  6. * This callback is raised only if there are not enough tiles of current version.
  7. * This callback is called to notify that the specified `versions` can be used for switching into Fallback mode.
  8. * This means there are tiles downloaded (available offline) of the specified `versions` covering current location
  9. * so MapMatching should work (even offline) after switching to the one of the specified `versions`.
  10. */
  11. - (void)onFallbackVersionsFoundForVersions:(nonnull NSArray<NSString *> *)versions;
  12. /**
  13. * Notifies a caller that it's OK to switch back to the latest version.
  14. * In order to use the latest version, it's sufficient to set "" in version configuration
  15. * @param version the tiles version we were checking against (just for information / logging purposes)
  16. */
  17. - (void)onCanReturnToLatestForVersion:(nonnull NSString *)version;
  18. @end