MBMStylePack


@interface MBMStylePack : NSObject

The style pack represents a stored style package.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStyleURI:(nonnull NSString *)styleURI
                     glyphsRasterizationMode:(MBMGlyphsRasterizationMode)glyphsRasterizationMode
                       requiredResourceCount:(uint64_t)requiredResourceCount
                      completedResourceCount:(uint64_t)completedResourceCount
                       completedResourceSize:(uint64_t)completedResourceSize
                                     expires:(nullable NSDate *)expires;

    Swift

    init(styleURI: String, glyphsRasterizationMode: GlyphsRasterizationMode, requiredResourceCount: UInt64, completedResourceCount: UInt64, completedResourceSize: UInt64, expires: Date?)
  • The style associated with the style package.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *styleURI;

    Swift

    var styleURI: String { get }
  • The glyphs rasterization mode of the style package.

    It defines which glyphs will be loaded from the server.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MBMGlyphsRasterizationMode glyphsRasterizationMode;

    Swift

    var glyphsRasterizationMode: GlyphsRasterizationMode { get }
  • The number of resources that are known to be required for this style package.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint64_t requiredResourceCount;

    Swift

    var requiredResourceCount: UInt64 { get }
  • The number of resources that have been fully downloaded and are ready for offline access.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint64_t completedResourceCount;

    Swift

    var completedResourceCount: UInt64 { get }
  • The cumulative size, in bytes, of all resources that have been fully downloaded.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint64_t completedResourceSize;

    Swift

    var completedResourceSize: UInt64 { get }
  • The earliest point in time when any of the style package resources gets expired.

    Unitialized for incomplete style packages or for complete style packages with all immutable resources.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *expires;

    Swift

    var expires: Date? { get }