| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- // This file is generated and will be overwritten automatically.
- #import <Foundation/Foundation.h>
- #import <CoreLocation/CoreLocation.h>
- #import <MapboxCoreMaps/MBMCameraManager.h>
- @class MBMMapSnapshotOptions;
- @class MBMSize;
- /** MapSnapshotter exposes functionality to capture static map images. */
- NS_SWIFT_NAME(MapSnapshotter)
- __attribute__((visibility ("default")))
- @interface MBMMapSnapshotter : MBMCameraManager
- // This class provides custom init which should be called
- - (nonnull instancetype)init NS_UNAVAILABLE;
- // This class provides custom init which should be called
- + (nonnull instancetype)new NS_UNAVAILABLE;
- /**
- * Construct a new snapshotter.
- *
- * @param options The `map snapshot options` to configure the snapshotter.
- */
- - (nonnull instancetype)initWithOptions:(nonnull MBMMapSnapshotOptions *)options;
- /**
- * Sets the `size` of the snapshot
- *
- * @param size The new `size` of the snapshot in `platform pixels`.
- */
- - (void)setSizeForSize:(nonnull MBMSize *)size;
- /**
- * Gets the size of the snapshot
- *
- * @return Snapshot `size` in `platform pixels`.
- */
- - (nonnull MBMSize *)getSize __attribute((ns_returns_retained));
- /**
- * Returns `true` if the snapshotter is in the tile mode.
- *
- * @return `true` if the snapshotter is in the tile mode, `false` otherwise.
- */
- - (BOOL)isInTileMode;
- /**
- * Sets the snapshotter to the tile mode.
- *
- * In the tile mode, the snapshotter fetches the still image of a single tile.
- *
- * @param set A `boolean` value representing if the snapshotter is in the tile mode.
- */
- - (void)setTileModeForSet:(BOOL)set;
- /**
- * Cancel the current snapshot operation.
- *
- * Cancel the current snapshot operation, if any. The callback passed to the start method
- * is called with error parameter set.
- */
- - (void)cancel;
- /**
- * Get elevation for the given coordinate.
- * Note: Elevation is only available for the visible region on the screen.
- *
- * @param coordinate defined as longitude-latitude pair.
- *
- * @return Elevation (in meters) multiplied by current terrain exaggeration, or empty if elevation for the coordinate is not available.
- */
- - (nullable NSNumber *)getElevationForCoordinate:(CLLocationCoordinate2D)coordinate __attribute((ns_returns_retained));
- @end
|