MBMOfflineRegionManager.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBMOfflineRegionGeometryDefinition;
  4. @class MBMOfflineRegionTilePyramidDefinition;
  5. @class MBMResourceOptions;
  6. /**
  7. * The `offline region manager` that manages offline packs. All of the class’s instance methods are asynchronous
  8. * reflecting the fact that offline resources are stored in a database. The offline manager maintains a canonical
  9. * collection of offline packs.
  10. */
  11. NS_SWIFT_NAME(OfflineRegionManager)
  12. __attribute__((visibility ("default")))
  13. __attribute__((deprecated))
  14. @interface MBMOfflineRegionManager : NSObject
  15. // This class provides custom init which should be called
  16. - (nonnull instancetype)init NS_UNAVAILABLE;
  17. // This class provides custom init which should be called
  18. + (nonnull instancetype)new NS_UNAVAILABLE;
  19. /**
  20. * Construct a new offline manager.
  21. *
  22. * @param resourceOptions the `resource options` to manage.
  23. */
  24. - (nonnull instancetype)initWithResourceOptions:(nonnull MBMResourceOptions *)resourceOptions;
  25. /**
  26. * Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device.
  27. *
  28. * By default, the limit is set to 6,000.
  29. * Once this limit is reached, `OfflineRegionObserver.mapboxTileCountLimitExceeded()`
  30. * fires every additional attempt to download additional tiles until already downloaded tiles are removed
  31. * by calling `OfflineRegion.purge()` API.
  32. *
  33. * @param limit the maximum number of tiles allowed to be downloaded
  34. */
  35. - (void)setOfflineMapboxTileCountLimitForLimit:(uint64_t)limit;
  36. @end