FBAEMKit-Swift.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. #if 0
  2. #elif defined(__arm64__) && __arm64__
  3. // Generated by Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
  4. #ifndef FBAEMKIT_SWIFT_H
  5. #define FBAEMKIT_SWIFT_H
  6. #pragma clang diagnostic push
  7. #pragma clang diagnostic ignored "-Wgcc-compat"
  8. #if !defined(__has_include)
  9. # define __has_include(x) 0
  10. #endif
  11. #if !defined(__has_attribute)
  12. # define __has_attribute(x) 0
  13. #endif
  14. #if !defined(__has_feature)
  15. # define __has_feature(x) 0
  16. #endif
  17. #if !defined(__has_warning)
  18. # define __has_warning(x) 0
  19. #endif
  20. #if __has_include(<swift/objc-prologue.h>)
  21. # include <swift/objc-prologue.h>
  22. #endif
  23. #pragma clang diagnostic ignored "-Wauto-import"
  24. #if defined(__OBJC__)
  25. #include <Foundation/Foundation.h>
  26. #endif
  27. #if defined(__cplusplus)
  28. #include <cstdint>
  29. #include <cstddef>
  30. #include <cstdbool>
  31. #include <cstring>
  32. #include <stdlib.h>
  33. #include <new>
  34. #include <type_traits>
  35. #else
  36. #include <stdint.h>
  37. #include <stddef.h>
  38. #include <stdbool.h>
  39. #include <string.h>
  40. #endif
  41. #if defined(__cplusplus)
  42. #if defined(__arm64e__) && __has_include(<ptrauth.h>)
  43. # include <ptrauth.h>
  44. #else
  45. #pragma clang diagnostic push
  46. #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
  47. # ifndef __ptrauth_swift_value_witness_function_pointer
  48. # define __ptrauth_swift_value_witness_function_pointer(x)
  49. # endif
  50. # ifndef __ptrauth_swift_class_method_pointer
  51. # define __ptrauth_swift_class_method_pointer(x)
  52. # endif
  53. #pragma clang diagnostic pop
  54. #endif
  55. #endif
  56. #if !defined(SWIFT_TYPEDEFS)
  57. # define SWIFT_TYPEDEFS 1
  58. # if __has_include(<uchar.h>)
  59. # include <uchar.h>
  60. # elif !defined(__cplusplus)
  61. typedef uint_least16_t char16_t;
  62. typedef uint_least32_t char32_t;
  63. # endif
  64. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  65. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  66. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  67. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  68. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  69. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  70. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  71. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  72. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  73. typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  74. typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  75. typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  76. #endif
  77. #if !defined(SWIFT_PASTE)
  78. # define SWIFT_PASTE_HELPER(x, y) x##y
  79. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  80. #endif
  81. #if !defined(SWIFT_METATYPE)
  82. # define SWIFT_METATYPE(X) Class
  83. #endif
  84. #if !defined(SWIFT_CLASS_PROPERTY)
  85. # if __has_feature(objc_class_property)
  86. # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  87. # else
  88. # define SWIFT_CLASS_PROPERTY(...)
  89. # endif
  90. #endif
  91. #if !defined(SWIFT_RUNTIME_NAME)
  92. # if __has_attribute(objc_runtime_name)
  93. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  94. # else
  95. # define SWIFT_RUNTIME_NAME(X)
  96. # endif
  97. #endif
  98. #if !defined(SWIFT_COMPILE_NAME)
  99. # if __has_attribute(swift_name)
  100. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  101. # else
  102. # define SWIFT_COMPILE_NAME(X)
  103. # endif
  104. #endif
  105. #if !defined(SWIFT_METHOD_FAMILY)
  106. # if __has_attribute(objc_method_family)
  107. # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  108. # else
  109. # define SWIFT_METHOD_FAMILY(X)
  110. # endif
  111. #endif
  112. #if !defined(SWIFT_NOESCAPE)
  113. # if __has_attribute(noescape)
  114. # define SWIFT_NOESCAPE __attribute__((noescape))
  115. # else
  116. # define SWIFT_NOESCAPE
  117. # endif
  118. #endif
  119. #if !defined(SWIFT_RELEASES_ARGUMENT)
  120. # if __has_attribute(ns_consumed)
  121. # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
  122. # else
  123. # define SWIFT_RELEASES_ARGUMENT
  124. # endif
  125. #endif
  126. #if !defined(SWIFT_WARN_UNUSED_RESULT)
  127. # if __has_attribute(warn_unused_result)
  128. # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  129. # else
  130. # define SWIFT_WARN_UNUSED_RESULT
  131. # endif
  132. #endif
  133. #if !defined(SWIFT_NORETURN)
  134. # if __has_attribute(noreturn)
  135. # define SWIFT_NORETURN __attribute__((noreturn))
  136. # else
  137. # define SWIFT_NORETURN
  138. # endif
  139. #endif
  140. #if !defined(SWIFT_CLASS_EXTRA)
  141. # define SWIFT_CLASS_EXTRA
  142. #endif
  143. #if !defined(SWIFT_PROTOCOL_EXTRA)
  144. # define SWIFT_PROTOCOL_EXTRA
  145. #endif
  146. #if !defined(SWIFT_ENUM_EXTRA)
  147. # define SWIFT_ENUM_EXTRA
  148. #endif
  149. #if !defined(SWIFT_CLASS)
  150. # if __has_attribute(objc_subclassing_restricted)
  151. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  152. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  153. # else
  154. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  155. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  156. # endif
  157. #endif
  158. #if !defined(SWIFT_RESILIENT_CLASS)
  159. # if __has_attribute(objc_class_stub)
  160. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  161. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  162. # else
  163. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  164. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  165. # endif
  166. #endif
  167. #if !defined(SWIFT_PROTOCOL)
  168. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  169. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  170. #endif
  171. #if !defined(SWIFT_EXTENSION)
  172. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  173. #endif
  174. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  175. # if __has_attribute(objc_designated_initializer)
  176. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  177. # else
  178. # define OBJC_DESIGNATED_INITIALIZER
  179. # endif
  180. #endif
  181. #if !defined(SWIFT_ENUM_ATTR)
  182. # if __has_attribute(enum_extensibility)
  183. # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  184. # else
  185. # define SWIFT_ENUM_ATTR(_extensibility)
  186. # endif
  187. #endif
  188. #if !defined(SWIFT_ENUM)
  189. # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  190. # if __has_feature(generalized_swift_name)
  191. # 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
  192. # else
  193. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  194. # endif
  195. #endif
  196. #if !defined(SWIFT_UNAVAILABLE)
  197. # define SWIFT_UNAVAILABLE __attribute__((unavailable))
  198. #endif
  199. #if !defined(SWIFT_UNAVAILABLE_MSG)
  200. # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  201. #endif
  202. #if !defined(SWIFT_AVAILABILITY)
  203. # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  204. #endif
  205. #if !defined(SWIFT_WEAK_IMPORT)
  206. # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  207. #endif
  208. #if !defined(SWIFT_DEPRECATED)
  209. # define SWIFT_DEPRECATED __attribute__((deprecated))
  210. #endif
  211. #if !defined(SWIFT_DEPRECATED_MSG)
  212. # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  213. #endif
  214. #if !defined(SWIFT_DEPRECATED_OBJC)
  215. # if __has_feature(attribute_diagnose_if_objc)
  216. # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  217. # else
  218. # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  219. # endif
  220. #endif
  221. #if defined(__OBJC__)
  222. #if !defined(IBSegueAction)
  223. # define IBSegueAction
  224. #endif
  225. #endif
  226. #if !defined(SWIFT_EXTERN)
  227. # if defined(__cplusplus)
  228. # define SWIFT_EXTERN extern "C"
  229. # else
  230. # define SWIFT_EXTERN extern
  231. # endif
  232. #endif
  233. #if !defined(SWIFT_CALL)
  234. # define SWIFT_CALL __attribute__((swiftcall))
  235. #endif
  236. #if !defined(SWIFT_INDIRECT_RESULT)
  237. # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
  238. #endif
  239. #if !defined(SWIFT_CONTEXT)
  240. # define SWIFT_CONTEXT __attribute__((swift_context))
  241. #endif
  242. #if !defined(SWIFT_ERROR_RESULT)
  243. # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
  244. #endif
  245. #if defined(__cplusplus)
  246. # define SWIFT_NOEXCEPT noexcept
  247. #else
  248. # define SWIFT_NOEXCEPT
  249. #endif
  250. #if !defined(SWIFT_C_INLINE_THUNK)
  251. # if __has_attribute(always_inline)
  252. # if __has_attribute(nodebug)
  253. # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
  254. # else
  255. # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
  256. # endif
  257. # else
  258. # define SWIFT_C_INLINE_THUNK inline
  259. # endif
  260. #endif
  261. #if defined(_WIN32)
  262. #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
  263. # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
  264. #endif
  265. #else
  266. #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
  267. # define SWIFT_IMPORT_STDLIB_SYMBOL
  268. #endif
  269. #endif
  270. #if defined(__OBJC__)
  271. #if __has_feature(objc_modules)
  272. #if __has_warning("-Watimport-in-framework-header")
  273. #pragma clang diagnostic ignored "-Watimport-in-framework-header"
  274. #endif
  275. @import Foundation;
  276. @import ObjectiveC;
  277. #endif
  278. #endif
  279. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  280. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  281. #if __has_warning("-Wpragma-clang-attribute")
  282. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  283. #endif
  284. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  285. #pragma clang diagnostic ignored "-Wnullability"
  286. #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
  287. #if __has_attribute(external_source_symbol)
  288. # pragma push_macro("any")
  289. # undef any
  290. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="FBAEMKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  291. # pragma pop_macro("any")
  292. #endif
  293. #if defined(__OBJC__)
  294. @class NSString;
  295. SWIFT_PROTOCOL_NAMED("AEMNetworking")
  296. @protocol FBAEMNetworking
  297. - (void)startGraphRequestWithGraphPath:(NSString * _Nonnull)graphPath parameters:(NSDictionary<NSString *, id> * _Nonnull)parameters tokenString:(NSString * _Nullable)tokenString HTTPMethod:(NSString * _Nullable)method completion:(void (^ _Nonnull)(id _Nullable, NSError * _Nullable))completion;
  298. @end
  299. @protocol FBSKAdNetworkReporting;
  300. @protocol FBSDKDataPersisting;
  301. @class NSURL;
  302. @class NSNumber;
  303. SWIFT_CLASS_NAMED("AEMReporter")
  304. @interface FBAEMReporter : NSObject
  305. + (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter;
  306. + (void)configureWithNetworker:(id <FBAEMNetworking> _Nullable)networker appID:(NSString * _Nullable)appID reporter:(id <FBSKAdNetworkReporting> _Nullable)reporter analyticsAppID:(NSString * _Nullable)analyticsAppID store:(id <FBSDKDataPersisting> _Nullable)store;
  307. /// Enable AEM reporting. This function won’t work and AEM APIs will early return.
  308. /// This function should be called in application(_:open:options:) from ApplicationDelegate.
  309. + (void)enable;
  310. /// Control whether to enable conversion filtering
  311. /// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
  312. + (void)setConversionFilteringEnabled:(BOOL)enabled;
  313. /// Control whether to enable catalog matching
  314. /// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
  315. + (void)setCatalogMatchingEnabled:(BOOL)enabled;
  316. /// Control whether to enable advertiser rule match enabled in server side. This is expected
  317. /// to be called internally by FB SDK and will be removed in the future
  318. /// This function should be called in <code>application(_:open:options:)</code> from ApplicationDelegate
  319. + (void)setAdvertiserRuleMatchInServerEnabled:(BOOL)enabled;
  320. /// Handle deeplink
  321. /// This function should be called in <code>application(_:open:options:) </code>from ApplicationDelegate
  322. + (void)handle:(NSURL * _Nullable)url;
  323. /// Calculate the conversion value for the app event based on the AEM configuration
  324. /// This function should be called when you log any in-app events
  325. + (void)recordAndUpdateEvent:(NSString * _Nonnull)event currency:(NSString * _Nullable)currency value:(NSNumber * _Nullable)value parameters:(NSDictionary<NSString *, id> * _Nullable)parameters;
  326. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  327. @end
  328. SWIFT_PROTOCOL_NAMED("SKAdNetworkReporting")
  329. @protocol FBSKAdNetworkReporting
  330. - (BOOL)shouldCutoff SWIFT_WARN_UNUSED_RESULT;
  331. - (BOOL)isReportingEvent:(NSString * _Nonnull)event SWIFT_WARN_UNUSED_RESULT;
  332. - (void)checkAndRevokeTimer;
  333. @end
  334. #endif
  335. #if __has_attribute(external_source_symbol)
  336. # pragma clang attribute pop
  337. #endif
  338. #if defined(__cplusplus)
  339. #endif
  340. #pragma clang diagnostic pop
  341. #endif
  342. #else
  343. #error unsupported Swift architecture
  344. #endif