MBMCameraOptions.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <CoreLocation/CoreLocation.h>
  4. @class MBMEdgeInsets;
  5. @class MBMScreenCoordinate;
  6. /**
  7. * Various options for describing the viewpoint of a camera. All fields are
  8. * optional.
  9. *
  10. * Anchor and center points are mutually exclusive, with preference for the
  11. * center point when both are set.
  12. */
  13. NS_SWIFT_NAME(CameraOptions)
  14. __attribute__((visibility ("default")))
  15. @interface MBMCameraOptions : 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)initWithCenter:(nullable CLLocation *)center
  21. padding:(nullable MBMEdgeInsets *)padding
  22. anchor:(nullable MBMScreenCoordinate *)anchor
  23. zoom:(nullable NSNumber *)zoom
  24. bearing:(nullable NSNumber *)bearing
  25. pitch:(nullable NSNumber *)pitch NS_REFINED_FOR_SWIFT;
  26. /** Coordinate at the center of the camera. */
  27. @property (nonatomic, readonly, nullable) CLLocation *center NS_REFINED_FOR_SWIFT;
  28. /**
  29. * Padding around the interior of the view that affects the frame of
  30. * reference for `center`.
  31. */
  32. @property (nonatomic, readonly, nullable) MBMEdgeInsets *padding NS_REFINED_FOR_SWIFT;
  33. /**
  34. * Point of reference for `zoom` and `angle`, assuming an origin at the
  35. * top-left corner of the view.
  36. */
  37. @property (nonatomic, readonly, nullable) MBMScreenCoordinate *anchor NS_REFINED_FOR_SWIFT;
  38. /**
  39. * Zero-based zoom level. Constrained to the minimum and maximum zoom
  40. * levels.
  41. */
  42. @property (nonatomic, readonly, nullable) NSNumber *zoom NS_REFINED_FOR_SWIFT;
  43. /** Bearing, measured in degrees from true north. Wrapped to [0, 360). */
  44. @property (nonatomic, readonly, nullable) NSNumber *bearing NS_REFINED_FOR_SWIFT;
  45. /** Pitch toward the horizon measured in degrees. */
  46. @property (nonatomic, readonly, nullable) NSNumber *pitch NS_REFINED_FOR_SWIFT;
  47. @end