MapboxDirections-Swift.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. // Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
  2. #ifndef MAPBOXDIRECTIONS_SWIFT_H
  3. #define MAPBOXDIRECTIONS_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 ObjectiveC;
  183. #endif
  184. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  185. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  186. #if __has_warning("-Wpragma-clang-attribute")
  187. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  188. #endif
  189. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  190. #pragma clang diagnostic ignored "-Wnullability"
  191. #if __has_attribute(external_source_symbol)
  192. # pragma push_macro("any")
  193. # undef any
  194. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MapboxDirections",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  195. # pragma pop_macro("any")
  196. #endif
  197. /// A <code>Directions</code> object provides you with optimal directions between different locations, or waypoints. The directions object passes your request to the <a href="https://docs.mapbox.com/api/navigation/#directions">Mapbox Directions API</a> and returns the requested information to a closure (block) that you provide. A directions object can handle multiple simultaneous requests. A <code>RouteOptions</code> object specifies criteria for the results, such as intermediate waypoints, a mode of transportation, or the level of detail to be returned.
  198. /// Each result produced by the directions object is stored in a <code>Route</code> object. Depending on the <code>RouteOptions</code> object you provide, each route may include detailed information suitable for turn-by-turn directions, or it may include only high-level information such as the distance, estimated travel time, and name of each leg of the trip. The waypoints that form the request may be conflated with nearby locations, as appropriate; the resulting waypoints are provided to the closure.
  199. SWIFT_CLASS("_TtC16MapboxDirections10Directions")
  200. @interface Directions : NSObject
  201. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  202. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  203. @end
  204. #if __has_attribute(external_source_symbol)
  205. # pragma clang attribute pop
  206. #endif
  207. #pragma clang diagnostic pop
  208. #endif