MBNNCacheHandle.h 967 B

1234567891011121314151617181920212223242526
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNRoadGraphUpdateAvailabilityCallback.h>
  4. NS_SWIFT_NAME(CacheHandle)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNCacheHandle : 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. /**
  12. * Async check if a road graph data update is available.
  13. * We determine the road graph version on the cache creation.
  14. * The next time a cache is created, it will also discover this version
  15. * and pick it up if automatic version switching is used.
  16. *
  17. * The check is guaranteed to take less than 5 seconds (default) and returns false in case of timeout.
  18. */
  19. - (void)isRoadGraphDataUpdateAvailableForCallback:(nonnull MBNNRoadGraphUpdateAvailabilityCallback)callback;
  20. @end