MBNNPredictiveCacheControllerOptions.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxNavigationNative/MBNNCacheDataDomain.h>
  4. NS_SWIFT_NAME(PredictiveCacheControllerOptions)
  5. __attribute__((visibility ("default")))
  6. @interface MBNNPredictiveCacheControllerOptions : 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. - (nonnull instancetype)initWithVersion:(nonnull NSString *)version
  12. dataset:(nonnull NSString *)dataset
  13. dataDomain:(MBNNCacheDataDomain)dataDomain
  14. concurrency:(uint32_t)concurrency
  15. maxAverageDownloadBytesPerSecond:(uint64_t)maxAverageDownloadBytesPerSecond;
  16. /** Tile version. */
  17. @property (nonatomic, readonly, nonnull, copy) NSString *version;
  18. /** Tile dataset. */
  19. @property (nonatomic, readonly, nonnull, copy) NSString *dataset;
  20. /** Data domain for the tiles to work with (maps, navigation) */
  21. @property (nonatomic, readonly) MBNNCacheDataDomain dataDomain;
  22. /**
  23. * Maximal number of requests to load tiles running in parallel.
  24. * Default: 0 - internal default value will be used for concurrency.
  25. */
  26. @property (nonatomic, readonly) uint32_t concurrency;
  27. /**
  28. * Max (average) tile download bandwidth (bytes per second).
  29. * "average" here means that it is impossible to really limit the tile download bandwidth,
  30. * but if some amount of tiles is already downloaded - we can delay new tile requests to respect this parameter,
  31. * so "in average" by time this bandwidth limit is meaningful.
  32. * Default: 0 - tile download is not limited by bandwidth.
  33. */
  34. @property (nonatomic, readonly) uint64_t maxAverageDownloadBytesPerSecond;
  35. @end