MBMStylePack.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCoreMaps/MBMGlyphsRasterizationMode.h>
  4. /** The `style pack` represents a stored style package. */
  5. NS_SWIFT_NAME(StylePack)
  6. __attribute__((visibility ("default")))
  7. @interface MBMStylePack : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithStyleURI:(nonnull NSString *)styleURI
  13. glyphsRasterizationMode:(MBMGlyphsRasterizationMode)glyphsRasterizationMode
  14. requiredResourceCount:(uint64_t)requiredResourceCount
  15. completedResourceCount:(uint64_t)completedResourceCount
  16. completedResourceSize:(uint64_t)completedResourceSize
  17. expires:(nullable NSDate *)expires;
  18. /** The style associated with the style package. */
  19. @property (nonatomic, readonly, nonnull, copy) NSString *styleURI;
  20. /**
  21. * The glyphs rasterization mode of the style package.
  22. *
  23. * It defines which glyphs will be loaded from the server.
  24. */
  25. @property (nonatomic, readonly) MBMGlyphsRasterizationMode glyphsRasterizationMode;
  26. /** The number of resources that are known to be required for this style package. */
  27. @property (nonatomic, readonly) uint64_t requiredResourceCount;
  28. /**
  29. * The number of resources that have been fully downloaded and are ready for
  30. * offline access.
  31. */
  32. @property (nonatomic, readonly) uint64_t completedResourceCount;
  33. /**
  34. * The cumulative size, in bytes, of all resources that have
  35. * been fully downloaded.
  36. */
  37. @property (nonatomic, readonly) uint64_t completedResourceSize;
  38. /**
  39. * The earliest point in time when any of the style package resources gets expired.
  40. *
  41. * Unitialized for incomplete style packages or for complete style packages with all immutable resources.
  42. */
  43. @property (nonatomic, readonly, nullable) NSDate *expires;
  44. @end