MBMOfflineRegionGeometryDefinition.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCoreMaps/MBMGlyphsRasterizationMode.h>
  4. @class MBXGeometry;
  5. /**
  6. * An offline region definition is a geographic region defined by a style URL,
  7. * a geometry, zoom range, and device pixel ratio. Both `minZoom` and `maxZoom` must be ≥ 0,
  8. * and `maxZoom` must be ≥ `minZoom`. The `maxZoom` may be ∞, in which case for each tile source,
  9. * the region will include tiles from `minZoom` up to the maximum zoom level provided by that source.
  10. * The `pixelRatio` must be ≥ 0 and should typically be 1.0 or 2.0.
  11. */
  12. NS_SWIFT_NAME(OfflineRegionGeometryDefinition)
  13. __attribute__((visibility ("default")))
  14. __attribute__((deprecated))
  15. @interface MBMOfflineRegionGeometryDefinition : NSObject
  16. // This class provides custom init which should be called
  17. - (nonnull instancetype)init NS_UNAVAILABLE;
  18. // This class provides custom init which should be called
  19. + (nonnull instancetype)new NS_UNAVAILABLE;
  20. - (nonnull instancetype)initWithStyleURL:(nonnull NSString *)styleURL
  21. geometry:(nonnull MBXGeometry *)geometry
  22. minZoom:(double)minZoom
  23. maxZoom:(double)maxZoom
  24. pixelRatio:(float)pixelRatio
  25. glyphsRasterizationMode:(MBMGlyphsRasterizationMode)glyphsRasterizationMode NS_REFINED_FOR_SWIFT;
  26. /** The style associated with the offline region */
  27. @property (nonatomic, readonly, nonnull, copy) NSString *styleURL;
  28. /** The geometry that defines the boundary of the offline region */
  29. @property (nonatomic, readonly, nonnull) MBXGeometry *geometry NS_REFINED_FOR_SWIFT;
  30. /** Minimum zoom level for the offline region */
  31. @property (nonatomic, readonly) double minZoom;
  32. /** Maximum zoom level for the offline region */
  33. @property (nonatomic, readonly) double maxZoom;
  34. /** Pixel ratio to be accounted for when downloading assets */
  35. @property (nonatomic, readonly) float pixelRatio;
  36. /** Specifies glyphs rasterization mode. It defines which glyphs will be loaded from the server */
  37. @property (nonatomic, readonly) MBMGlyphsRasterizationMode glyphsRasterizationMode;
  38. @end