MBMMapSnapshotOptions.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBMGlyphsRasterizationOptions;
  4. @class MBMResourceOptions;
  5. @class MBMSize;
  6. /** Set of options for taking map snapshot with `map snapshotter`. */
  7. NS_SWIFT_NAME(MapSnapshotOptions)
  8. __attribute__((visibility ("default")))
  9. @interface MBMMapSnapshotOptions : NSObject
  10. // This class provides custom init which should be called
  11. - (nonnull instancetype)init NS_UNAVAILABLE;
  12. // This class provides custom init which should be called
  13. + (nonnull instancetype)new NS_UNAVAILABLE;
  14. - (nonnull instancetype)initWithSize:(nonnull MBMSize *)size
  15. glyphsRasterizationOptions:(nullable MBMGlyphsRasterizationOptions *)glyphsRasterizationOptions
  16. resourceOptions:(nonnull MBMResourceOptions *)resourceOptions NS_REFINED_FOR_SWIFT;
  17. - (nonnull instancetype)initWithSize:(nonnull MBMSize *)size
  18. pixelRatio:(float)pixelRatio
  19. glyphsRasterizationOptions:(nullable MBMGlyphsRasterizationOptions *)glyphsRasterizationOptions
  20. resourceOptions:(nonnull MBMResourceOptions *)resourceOptions NS_REFINED_FOR_SWIFT;
  21. /** Dimensions of the snapshot in `platform pixel` units. */
  22. @property (nonatomic, readonly, nonnull) MBMSize *size NS_REFINED_FOR_SWIFT;
  23. /** Ratio between the number device-independent and screen pixels. */
  24. @property (nonatomic, readonly) float pixelRatio;
  25. /**
  26. * Glyphs rasterization options to use for client-side text rendering.
  27. * By default, `GlyphsRasterizationOptions` will use `NoGlyphsRasterizedLocally` mode.
  28. */
  29. @property (nonatomic, readonly, nullable) MBMGlyphsRasterizationOptions *glyphsRasterizationOptions;
  30. /** The `resource options` to be used by the snapshotter. */
  31. @property (nonatomic, readonly, nonnull) MBMResourceOptions *resourceOptions;
  32. @end