MapboxMaps-Swift.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. // Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
  2. #ifndef MAPBOXMAPS_SWIFT_H
  3. #define MAPBOXMAPS_SWIFT_H
  4. #pragma clang diagnostic push
  5. #pragma clang diagnostic ignored "-Wgcc-compat"
  6. #if !defined(__has_include)
  7. # define __has_include(x) 0
  8. #endif
  9. #if !defined(__has_attribute)
  10. # define __has_attribute(x) 0
  11. #endif
  12. #if !defined(__has_feature)
  13. # define __has_feature(x) 0
  14. #endif
  15. #if !defined(__has_warning)
  16. # define __has_warning(x) 0
  17. #endif
  18. #if __has_include(<swift/objc-prologue.h>)
  19. # include <swift/objc-prologue.h>
  20. #endif
  21. #pragma clang diagnostic ignored "-Wauto-import"
  22. #include <Foundation/Foundation.h>
  23. #include <stdint.h>
  24. #include <stddef.h>
  25. #include <stdbool.h>
  26. #if !defined(SWIFT_TYPEDEFS)
  27. # define SWIFT_TYPEDEFS 1
  28. # if __has_include(<uchar.h>)
  29. # include <uchar.h>
  30. # elif !defined(__cplusplus)
  31. typedef uint_least16_t char16_t;
  32. typedef uint_least32_t char32_t;
  33. # endif
  34. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  35. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  36. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  37. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  38. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  39. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  40. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  41. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  42. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  43. typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  44. typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  45. typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  46. #endif
  47. #if !defined(SWIFT_PASTE)
  48. # define SWIFT_PASTE_HELPER(x, y) x##y
  49. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  50. #endif
  51. #if !defined(SWIFT_METATYPE)
  52. # define SWIFT_METATYPE(X) Class
  53. #endif
  54. #if !defined(SWIFT_CLASS_PROPERTY)
  55. # if __has_feature(objc_class_property)
  56. # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  57. # else
  58. # define SWIFT_CLASS_PROPERTY(...)
  59. # endif
  60. #endif
  61. #if __has_attribute(objc_runtime_name)
  62. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  63. #else
  64. # define SWIFT_RUNTIME_NAME(X)
  65. #endif
  66. #if __has_attribute(swift_name)
  67. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  68. #else
  69. # define SWIFT_COMPILE_NAME(X)
  70. #endif
  71. #if __has_attribute(objc_method_family)
  72. # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  73. #else
  74. # define SWIFT_METHOD_FAMILY(X)
  75. #endif
  76. #if __has_attribute(noescape)
  77. # define SWIFT_NOESCAPE __attribute__((noescape))
  78. #else
  79. # define SWIFT_NOESCAPE
  80. #endif
  81. #if __has_attribute(ns_consumed)
  82. # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
  83. #else
  84. # define SWIFT_RELEASES_ARGUMENT
  85. #endif
  86. #if __has_attribute(warn_unused_result)
  87. # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  88. #else
  89. # define SWIFT_WARN_UNUSED_RESULT
  90. #endif
  91. #if __has_attribute(noreturn)
  92. # define SWIFT_NORETURN __attribute__((noreturn))
  93. #else
  94. # define SWIFT_NORETURN
  95. #endif
  96. #if !defined(SWIFT_CLASS_EXTRA)
  97. # define SWIFT_CLASS_EXTRA
  98. #endif
  99. #if !defined(SWIFT_PROTOCOL_EXTRA)
  100. # define SWIFT_PROTOCOL_EXTRA
  101. #endif
  102. #if !defined(SWIFT_ENUM_EXTRA)
  103. # define SWIFT_ENUM_EXTRA
  104. #endif
  105. #if !defined(SWIFT_CLASS)
  106. # if __has_attribute(objc_subclassing_restricted)
  107. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  108. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  109. # else
  110. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  111. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  112. # endif
  113. #endif
  114. #if !defined(SWIFT_RESILIENT_CLASS)
  115. # if __has_attribute(objc_class_stub)
  116. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  117. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  118. # else
  119. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  120. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  121. # endif
  122. #endif
  123. #if !defined(SWIFT_PROTOCOL)
  124. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  125. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  126. #endif
  127. #if !defined(SWIFT_EXTENSION)
  128. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  129. #endif
  130. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  131. # if __has_attribute(objc_designated_initializer)
  132. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  133. # else
  134. # define OBJC_DESIGNATED_INITIALIZER
  135. # endif
  136. #endif
  137. #if !defined(SWIFT_ENUM_ATTR)
  138. # if defined(__has_attribute) && __has_attribute(enum_extensibility)
  139. # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  140. # else
  141. # define SWIFT_ENUM_ATTR(_extensibility)
  142. # endif
  143. #endif
  144. #if !defined(SWIFT_ENUM)
  145. # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  146. # if __has_feature(generalized_swift_name)
  147. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  148. # else
  149. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  150. # endif
  151. #endif
  152. #if !defined(SWIFT_UNAVAILABLE)
  153. # define SWIFT_UNAVAILABLE __attribute__((unavailable))
  154. #endif
  155. #if !defined(SWIFT_UNAVAILABLE_MSG)
  156. # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  157. #endif
  158. #if !defined(SWIFT_AVAILABILITY)
  159. # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  160. #endif
  161. #if !defined(SWIFT_WEAK_IMPORT)
  162. # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  163. #endif
  164. #if !defined(SWIFT_DEPRECATED)
  165. # define SWIFT_DEPRECATED __attribute__((deprecated))
  166. #endif
  167. #if !defined(SWIFT_DEPRECATED_MSG)
  168. # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  169. #endif
  170. #if __has_feature(attribute_diagnose_if_objc)
  171. # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  172. #else
  173. # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  174. #endif
  175. #if !defined(IBSegueAction)
  176. # define IBSegueAction
  177. #endif
  178. #if __has_feature(modules)
  179. #if __has_warning("-Watimport-in-framework-header")
  180. #pragma clang diagnostic ignored "-Watimport-in-framework-header"
  181. #endif
  182. @import CoreGraphics;
  183. @import CoreLocation;
  184. @import Foundation;
  185. @import MapboxCoreMaps;
  186. @import ObjectiveC;
  187. @import UIKit;
  188. #endif
  189. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  190. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  191. #if __has_warning("-Wpragma-clang-attribute")
  192. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  193. #endif
  194. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  195. #pragma clang diagnostic ignored "-Wnullability"
  196. #if __has_attribute(external_source_symbol)
  197. # pragma push_macro("any")
  198. # undef any
  199. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MapboxMaps",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  200. # pragma pop_macro("any")
  201. #endif
  202. SWIFT_CLASS("_TtC10MapboxMaps21AppleLocationProvider")
  203. @interface AppleLocationProvider : NSObject
  204. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  205. @end
  206. @class CLLocationManager;
  207. @class CLLocation;
  208. @class CLHeading;
  209. @class NSNumber;
  210. @interface AppleLocationProvider (SWIFT_EXTENSION(MapboxMaps)) <CLLocationManagerDelegate>
  211. - (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray<CLLocation *> * _Nonnull)locations;
  212. - (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateHeading:(CLHeading * _Nonnull)heading;
  213. - (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error;
  214. - (void)locationManagerDidChangeAuthorization:(CLLocationManager * _Nonnull)manager SWIFT_AVAILABILITY(ios,introduced=14.0);
  215. - (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager * _Nonnull)manager SWIFT_WARN_UNUSED_RESULT;
  216. @end
  217. SWIFT_CLASS("_TtC10MapboxMaps19BasicCameraAnimator")
  218. @interface BasicCameraAnimator : NSObject
  219. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  220. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  221. @end
  222. /// An animator that evokes powered flight and an optional transition duration and timing function.
  223. /// It seamlessly incorporates zooming and panning to help the user find their bearings even after
  224. /// traversing a great distance.
  225. /// seealso:
  226. /// <code>CameraAnimationsManager/fly(to:duration:completion:)</code>
  227. SWIFT_CLASS("_TtC10MapboxMaps19FlyToCameraAnimator")
  228. @interface FlyToCameraAnimator : NSObject
  229. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  230. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  231. @end
  232. @interface MBMGlyphsRasterizationOptions (SWIFT_EXTENSION(MapboxMaps))
  233. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  234. @property (nonatomic, readonly) NSUInteger hash;
  235. @end
  236. /// Instances of this class are delivered to <code>LocationConsumer</code>s by <code>LocationManager</code> whenever
  237. /// the heading, location, or accuracy authorization change.
  238. SWIFT_CLASS("_TtC10MapboxMaps8Location")
  239. @interface Location : NSObject
  240. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  241. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  242. @end
  243. /// The <code>LocationConsumer</code> protocol defines a method that a class must implement to consume location updates from LocationManager
  244. SWIFT_PROTOCOL("_TtP10MapboxMaps16LocationConsumer_")
  245. @protocol LocationConsumer
  246. /// New location update received
  247. - (void)locationUpdateWithNewLocation:(Location * _Nonnull)newLocation;
  248. @end
  249. /// An object responsible for notifying the map view about location-related events,
  250. /// such as a change in the device’s location.
  251. SWIFT_CLASS("_TtC10MapboxMaps15LocationManager")
  252. @interface LocationManager : NSObject
  253. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  254. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  255. @end
  256. /// The <code>LocationPermissionsDelegate</code> protocol defines a set of optional methods that you
  257. /// can use to receive events from an associated location manager object.
  258. SWIFT_PROTOCOL("_TtP10MapboxMaps27LocationPermissionsDelegate_")
  259. @protocol LocationPermissionsDelegate
  260. @optional
  261. /// Tells the delegate that an attempt to locate the user’s position failed.
  262. /// \param locationManager The location manager that is tracking the user’s location.
  263. ///
  264. /// \param error An error object containing the reason why location tracking failed.
  265. ///
  266. - (void)locationManager:(LocationManager * _Nonnull)locationManager didFailToLocateUserWithError:(NSError * _Nonnull)error;
  267. /// Tells the delegate that the accuracy authorization has changed.
  268. /// \param locationManager The location manager that is tracking the user’s location.
  269. ///
  270. /// \param accuracyAuthorization The updated accuracy authorization value.
  271. ///
  272. - (void)locationManager:(LocationManager * _Nonnull)locationManager didChangeAccuracyAuthorization:(CLAccuracyAuthorization)accuracyAuthorization;
  273. /// Asks the delegate whether the heading calibration alert should be displayed.
  274. /// \param locationManager The location manager object coordinating the display of the heading calibration alert.
  275. ///
  276. ///
  277. /// returns:
  278. /// <code>true</code> if you want to allow the heading calibration alert to be displayed; <code>false</code> if you do not.
  279. - (BOOL)locationManagerShouldDisplayHeadingCalibration:(LocationManager * _Nonnull)locationManager SWIFT_WARN_UNUSED_RESULT;
  280. @end
  281. /// Options used when initializing <code>MapView</code>.
  282. /// Contains the <code>ResourceOptions</code>, <code>MapOptions</code> (including <code>GlyphsRasterizationOptions</code>)
  283. /// that are required to initialize a <code>MapView</code>.
  284. SWIFT_CLASS("_TtC10MapboxMaps14MapInitOptions")
  285. @interface MapInitOptions : NSObject
  286. /// :nodoc:
  287. /// See https://developer.apple.com/forums/thread/650054 for context
  288. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  289. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  290. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  291. @property (nonatomic, readonly) NSUInteger hash;
  292. @end
  293. /// A protocol used to provide <code>MapInitOptions</code> when initializing a <code>MapView</code> with a Storyboard or
  294. /// a nib.
  295. SWIFT_PROTOCOL("_TtP10MapboxMaps22MapInitOptionsProvider_")
  296. @protocol MapInitOptionsProvider
  297. /// A method to be called when <code>MapView</code> needs initialization options
  298. ///
  299. /// returns:
  300. /// Initializations options for the <code>MapView</code>.
  301. - (MapInitOptions * _Nonnull)mapInitOptions SWIFT_WARN_UNUSED_RESULT;
  302. @end
  303. @interface MBMMapOptions (SWIFT_EXTENSION(MapboxMaps))
  304. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  305. @property (nonatomic, readonly) NSUInteger hash;
  306. @end
  307. @class NSCoder;
  308. SWIFT_CLASS("_TtC10MapboxMaps7MapView")
  309. @interface MapView : UIView
  310. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios_app_extension,unavailable);
  311. /// :nodoc:
  312. /// See https://developer.apple.com/forums/thread/650054 for context
  313. - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
  314. - (void)awakeFromNib;
  315. - (void)layoutSubviews;
  316. - (void)didMoveToWindow;
  317. @end
  318. /// APIs for managing map ornaments
  319. SWIFT_CLASS("_TtC10MapboxMaps16OrnamentsManager")
  320. @interface OrnamentsManager : NSObject
  321. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  322. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  323. @end
  324. /// The <code>PuckLocationConsumer</code> protocol defines a method that a conformer must implement to consume a puck’s accurate location.
  325. SWIFT_PROTOCOL("_TtP10MapboxMaps20PuckLocationConsumer_")
  326. @protocol PuckLocationConsumer
  327. /// To be invoked when a new puck’s location is received.
  328. - (void)puckLocationUpdateWithNewLocation:(Location * _Nonnull)newLocation;
  329. @end
  330. #if __has_attribute(external_source_symbol)
  331. # pragma clang attribute pop
  332. #endif
  333. #pragma clang diagnostic pop
  334. #endif