OUIMeetingPlugin-Swift.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. #if 0
  2. #elif defined(__arm64__) && __arm64__
  3. // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
  4. #ifndef OUIMEETINGPLUGIN_SWIFT_H
  5. #define OUIMEETINGPLUGIN_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 CoreFoundation;
  276. @import Foundation;
  277. @import OUICallingPlugin;
  278. @import ObjectiveC;
  279. @import UIKit;
  280. #endif
  281. #endif
  282. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  283. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  284. #if __has_warning("-Wpragma-clang-attribute")
  285. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  286. #endif
  287. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  288. #pragma clang diagnostic ignored "-Wnullability"
  289. #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
  290. #if __has_attribute(external_source_symbol)
  291. # pragma push_macro("any")
  292. # undef any
  293. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="OUIMeetingPlugin",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  294. # pragma pop_macro("any")
  295. #endif
  296. #if defined(__OBJC__)
  297. @class NSString;
  298. SWIFT_CLASS("_TtC16OUIMeetingPlugin10APIManager")
  299. @interface APIManager : NSObject
  300. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) APIManager * _Nonnull shared;)
  301. + (APIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
  302. - (void)setBaseWithUrl:(NSString * _Nonnull)url token:(NSString * _Nonnull)token;
  303. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  304. @end
  305. @class UIColor;
  306. @class NSCoder;
  307. SWIFT_CLASS("_TtC16OUIMeetingPlugin12LayoutButton")
  308. @interface LayoutButton : UIButton
  309. - (void)setTitleColor:(UIColor * _Nullable)color forState:(UIControlState)state;
  310. - (void)setTitle:(NSString * _Nullable)title forState:(UIControlState)state;
  311. @property (nonatomic, readonly) CGSize intrinsicContentSize;
  312. - (void)layoutSubviews;
  313. - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
  314. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
  315. @end
  316. @class UIViewController;
  317. @class NSBundle;
  318. SWIFT_CLASS("_TtC16OUIMeetingPlugin24LiveNavigationController")
  319. @interface LiveNavigationController : UINavigationController
  320. @property (nonatomic, readonly) BOOL shouldAutorotate;
  321. @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
  322. - (nonnull instancetype)initWithNavigationBarClass:(Class _Nullable)navigationBarClass toolbarClass:(Class _Nullable)toolbarClass OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=5.0);
  323. - (nonnull instancetype)initWithRootViewController:(UIViewController * _Nonnull)rootViewController OBJC_DESIGNATED_INITIALIZER;
  324. - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
  325. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
  326. @end
  327. SWIFT_CLASS("_TtC16OUIMeetingPlugin22LiveRoomViewController")
  328. @interface LiveRoomViewController : UIViewController
  329. @property (nonatomic, copy) void (^ _Nullable onInvitedHandler)(NSDictionary<NSString *, id> * _Nonnull);
  330. @property (nonatomic, copy) void (^ _Nullable onDismissHandler)(void);
  331. @property (nonatomic, copy) void (^ _Nullable onRotationHandler)(UIInterfaceOrientationMask);
  332. + (LiveRoomViewController * _Nonnull)startMeetingWithLiveURL:(NSString * _Nonnull)liveURL token:(NSString * _Nonnull)token roomID:(NSString * _Nullable)roomID SWIFT_WARN_UNUSED_RESULT;
  333. + (void)forceDismissWithViewController:(LiveRoomViewController * _Nullable)viewController;
  334. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
  335. - (void)viewDidLoad;
  336. - (void)viewWillAppear:(BOOL)animated;
  337. - (void)viewDidAppear:(BOOL)animated;
  338. - (void)viewWillDisappear:(BOOL)animated;
  339. - (void)viewDidDisappear:(BOOL)animated;
  340. @property (nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;
  341. - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
  342. @end
  343. @class Room;
  344. @class LocalParticipant;
  345. @class LocalTrackPublication;
  346. @class RemoteParticipant;
  347. @class RemoteTrackPublication;
  348. @class Track;
  349. @class Participant;
  350. @class TrackPublication;
  351. @class NSData;
  352. @interface LiveRoomViewController (SWIFT_EXTENSION(OUIMeetingPlugin))
  353. - (void)room:(Room * _Nonnull)room localParticipant:(LocalParticipant * _Nonnull)localParticipant didPublishPublication:(LocalTrackPublication * _Nonnull)publication;
  354. - (void)room:(Room * _Nonnull)room didUpdateMetadata:(NSString * _Nullable)metadata;
  355. - (void)room:(Room * _Nonnull)room participantDidLeave:(RemoteParticipant * _Nonnull)participant;
  356. - (void)room:(Room * _Nonnull)room participantDidJoin:(RemoteParticipant * _Nonnull)participant;
  357. - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nonnull)participant didSubscribePublication:(RemoteTrackPublication * _Nonnull)publication track:(Track * _Nonnull)track;
  358. - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nonnull)participant didUnpublishPublication:(RemoteTrackPublication * _Nonnull)publication;
  359. - (void)room:(Room * _Nonnull)room publication:(RemoteParticipant * _Nonnull)participant didUnsubscribePublication:(RemoteTrackPublication * _Nonnull)publication track:(Track * _Nonnull)track;
  360. - (void)room:(Room * _Nonnull)room didUpdateSpeakers:(NSArray<Participant *> * _Nonnull)speakers;
  361. - (void)room:(Room * _Nonnull)room participant:(Participant * _Nonnull)participant publication:(TrackPublication * _Nonnull)publication didUpdateMuted:(BOOL)muted;
  362. - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nullable)participant didReceiveData:(NSData * _Nonnull)data topic:(NSString * _Nonnull)topic;
  363. @end
  364. @class UITableView;
  365. @class NSIndexPath;
  366. @class UITableViewCell;
  367. SWIFT_CLASS("_TtC16OUIMeetingPlugin26PopoverTableViewController")
  368. @interface PopoverTableViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
  369. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
  370. - (void)viewDidLoad;
  371. - (void)viewWillAppear:(BOOL)animated;
  372. - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
  373. - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
  374. - (void)tableView:(UITableView * _Nonnull)tableView willDisplayCell:(UITableViewCell * _Nonnull)cell forRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  375. - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  376. - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
  377. @end
  378. @class UIPresentationController;
  379. @interface PopoverTableViewController (SWIFT_EXTENSION(OUIMeetingPlugin)) <UIPopoverPresentationControllerDelegate>
  380. - (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController * _Nonnull)controller SWIFT_WARN_UNUSED_RESULT;
  381. @end
  382. /// Responsible for handling all delegate callbacks for the underlying session.
  383. SWIFT_CLASS("_TtC16OUIMeetingPlugin15SessionDelegate")
  384. @interface SessionDelegate : NSObject
  385. /// Initializes the <code>SessionDelegate</code> instance.
  386. ///
  387. /// returns:
  388. /// The new <code>SessionDelegate</code> instance.
  389. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  390. /// Returns a <code>Bool</code> indicating whether the <code>SessionDelegate</code> implements or inherits a method that can respond
  391. /// to a specified message.
  392. /// \param selector A selector that identifies a message.
  393. ///
  394. ///
  395. /// returns:
  396. /// <code>true</code> if the receiver implements or inherits a method that can respond to selector, otherwise <code>false</code>.
  397. - (BOOL)respondsToSelector:(SEL _Nonnull)selector SWIFT_WARN_UNUSED_RESULT;
  398. @end
  399. @class NSURLSession;
  400. @class NSURLSessionDownloadTask;
  401. @class NSURL;
  402. @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDownloadDelegate>
  403. /// Tells the delegate that a download task has finished downloading.
  404. /// \param session The session containing the download task that finished.
  405. ///
  406. /// \param downloadTask The download task that finished.
  407. ///
  408. /// \param location A file URL for the temporary file. Because the file is temporary, you must either
  409. /// open the file for reading or move it to a permanent location in your app’s sandbox
  410. /// container directory before returning from this delegate method.
  411. ///
  412. - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location;
  413. /// Periodically informs the delegate about the download’s progress.
  414. /// \param session The session containing the download task.
  415. ///
  416. /// \param downloadTask The download task.
  417. ///
  418. /// \param bytesWritten The number of bytes transferred since the last time this delegate
  419. /// method was called.
  420. ///
  421. /// \param totalBytesWritten The total number of bytes transferred so far.
  422. ///
  423. /// \param totalBytesExpectedToWrite The expected length of the file, as provided by the Content-Length
  424. /// header. If this header was not provided, the value is
  425. /// <code>NSURLSessionTransferSizeUnknown</code>.
  426. ///
  427. - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
  428. /// Tells the delegate that the download task has resumed downloading.
  429. /// \param session The session containing the download task that finished.
  430. ///
  431. /// \param downloadTask The download task that resumed. See explanation in the discussion.
  432. ///
  433. /// \param fileOffset If the file’s cache policy or last modified date prevents reuse of the
  434. /// existing content, then this value is zero. Otherwise, this value is an
  435. /// integer representing the number of bytes on disk that do not need to be
  436. /// retrieved again.
  437. ///
  438. /// \param expectedTotalBytes The expected length of the file, as provided by the Content-Length header.
  439. /// If this header was not provided, the value is NSURLSessionTransferSizeUnknown.
  440. ///
  441. - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes;
  442. @end
  443. @class NSURLSessionStreamTask;
  444. @class NSInputStream;
  445. @class NSOutputStream;
  446. SWIFT_AVAILABILITY(tvos,introduced=9.0) SWIFT_AVAILABILITY(macos,introduced=10.11) SWIFT_AVAILABILITY(ios,introduced=9.0)
  447. @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionStreamDelegate>
  448. /// Tells the delegate that the read side of the connection has been closed.
  449. /// \param session The session.
  450. ///
  451. /// \param streamTask The stream task.
  452. ///
  453. - (void)URLSession:(NSURLSession * _Nonnull)session readClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
  454. /// Tells the delegate that the write side of the connection has been closed.
  455. /// \param session The session.
  456. ///
  457. /// \param streamTask The stream task.
  458. ///
  459. - (void)URLSession:(NSURLSession * _Nonnull)session writeClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
  460. /// Tells the delegate that the system has determined that a better route to the host is available.
  461. /// \param session The session.
  462. ///
  463. /// \param streamTask The stream task.
  464. ///
  465. - (void)URLSession:(NSURLSession * _Nonnull)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
  466. /// Tells the delegate that the stream task has been completed and provides the unopened stream objects.
  467. /// \param session The session.
  468. ///
  469. /// \param streamTask The stream task.
  470. ///
  471. /// \param inputStream The new input stream.
  472. ///
  473. /// \param outputStream The new output stream.
  474. ///
  475. - (void)URLSession:(NSURLSession * _Nonnull)session streamTask:(NSURLSessionStreamTask * _Nonnull)streamTask didBecomeInputStream:(NSInputStream * _Nonnull)inputStream outputStream:(NSOutputStream * _Nonnull)outputStream;
  476. @end
  477. @class NSURLSessionDataTask;
  478. @class NSURLResponse;
  479. @class NSCachedURLResponse;
  480. @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDataDelegate>
  481. /// Tells the delegate that the data task received the initial reply (headers) from the server.
  482. /// \param session The session containing the data task that received an initial reply.
  483. ///
  484. /// \param dataTask The data task that received an initial reply.
  485. ///
  486. /// \param response A URL response object populated with headers.
  487. ///
  488. /// \param completionHandler A completion handler that your code calls to continue the transfer, passing a
  489. /// constant to indicate whether the transfer should continue as a data task or
  490. /// should become a download task.
  491. ///
  492. - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveResponse:(NSURLResponse * _Nonnull)response completionHandler:(void (^ _Nonnull)(NSURLSessionResponseDisposition))completionHandler;
  493. /// Tells the delegate that the data task was changed to a download task.
  494. /// \param session The session containing the task that was replaced by a download task.
  495. ///
  496. /// \param dataTask The data task that was replaced by a download task.
  497. ///
  498. /// \param downloadTask The new download task that replaced the data task.
  499. ///
  500. - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didBecomeDownloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask;
  501. /// Tells the delegate that the data task has received some of the expected data.
  502. /// \param session The session containing the data task that provided data.
  503. ///
  504. /// \param dataTask The data task that provided data.
  505. ///
  506. /// \param data A data object containing the transferred data.
  507. ///
  508. - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data;
  509. /// Asks the delegate whether the data (or upload) task should store the response in the cache.
  510. /// \param session The session containing the data (or upload) task.
  511. ///
  512. /// \param dataTask The data (or upload) task.
  513. ///
  514. /// \param proposedResponse The default caching behavior. This behavior is determined based on the current
  515. /// caching policy and the values of certain received headers, such as the Pragma
  516. /// and Cache-Control headers.
  517. ///
  518. /// \param completionHandler A block that your handler must call, providing either the original proposed
  519. /// response, a modified version of that response, or NULL to prevent caching the
  520. /// response. If your delegate implements this method, it must call this completion
  521. /// handler; otherwise, your app leaks memory.
  522. ///
  523. - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask willCacheResponse:(NSCachedURLResponse * _Nonnull)proposedResponse completionHandler:(void (^ _Nonnull)(NSCachedURLResponse * _Nullable))completionHandler;
  524. @end
  525. @class NSURLAuthenticationChallenge;
  526. @class NSURLCredential;
  527. @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDelegate>
  528. /// Tells the delegate that the session has been invalidated.
  529. /// \param session The session object that was invalidated.
  530. ///
  531. /// \param error The error that caused invalidation, or nil if the invalidation was explicit.
  532. ///
  533. - (void)URLSession:(NSURLSession * _Nonnull)session didBecomeInvalidWithError:(NSError * _Nullable)error;
  534. /// Requests credentials from the delegate in response to a session-level authentication request from the
  535. /// remote server.
  536. /// \param session The session containing the task that requested authentication.
  537. ///
  538. /// \param challenge An object that contains the request for authentication.
  539. ///
  540. /// \param completionHandler A handler that your delegate method must call providing the disposition
  541. /// and credential.
  542. ///
  543. - (void)URLSession:(NSURLSession * _Nonnull)session didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
  544. /// Tells the delegate that all messages enqueued for a session have been delivered.
  545. /// \param session The session that no longer has any outstanding requests.
  546. ///
  547. - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession * _Nonnull)session;
  548. @end
  549. @class NSURLSessionTask;
  550. @class NSHTTPURLResponse;
  551. @class NSURLRequest;
  552. @class NSURLSessionTaskMetrics;
  553. @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionTaskDelegate>
  554. /// Tells the delegate that the remote server requested an HTTP redirect.
  555. /// \param session The session containing the task whose request resulted in a redirect.
  556. ///
  557. /// \param task The task whose request resulted in a redirect.
  558. ///
  559. /// \param response An object containing the server’s response to the original request.
  560. ///
  561. /// \param request A URL request object filled out with the new location.
  562. ///
  563. /// \param completionHandler A closure that your handler should call with either the value of the request
  564. /// parameter, a modified URL request object, or NULL to refuse the redirect and
  565. /// return the body of the redirect response.
  566. ///
  567. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task willPerformHTTPRedirection:(NSHTTPURLResponse * _Nonnull)response newRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURLRequest * _Nullable))completionHandler;
  568. /// Requests credentials from the delegate in response to an authentication request from the remote server.
  569. /// \param session The session containing the task whose request requires authentication.
  570. ///
  571. /// \param task The task whose request requires authentication.
  572. ///
  573. /// \param challenge An object that contains the request for authentication.
  574. ///
  575. /// \param completionHandler A handler that your delegate method must call providing the disposition
  576. /// and credential.
  577. ///
  578. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
  579. /// Tells the delegate when a task requires a new request body stream to send to the remote server.
  580. /// \param session The session containing the task that needs a new body stream.
  581. ///
  582. /// \param task The task that needs a new body stream.
  583. ///
  584. /// \param completionHandler A completion handler that your delegate method should call with the new body stream.
  585. ///
  586. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task needNewBodyStream:(void (^ _Nonnull)(NSInputStream * _Nullable))completionHandler;
  587. /// Periodically informs the delegate of the progress of sending body content to the server.
  588. /// \param session The session containing the data task.
  589. ///
  590. /// \param task The data task.
  591. ///
  592. /// \param bytesSent The number of bytes sent since the last time this delegate method was called.
  593. ///
  594. /// \param totalBytesSent The total number of bytes sent so far.
  595. ///
  596. /// \param totalBytesExpectedToSend The expected length of the body data.
  597. ///
  598. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
  599. /// Tells the delegate that the session finished collecting metrics for the task.
  600. /// \param session The session collecting the metrics.
  601. ///
  602. /// \param task The task whose metrics have been collected.
  603. ///
  604. /// \param metrics The collected metrics.
  605. ///
  606. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics * _Nonnull)metrics SWIFT_AVAILABILITY(tvos,introduced=10.0) SWIFT_AVAILABILITY(macos,introduced=10.12) SWIFT_AVAILABILITY(ios,introduced=10.0);
  607. /// Tells the delegate that the task finished transferring data.
  608. /// \param session The session containing the task whose request finished transferring data.
  609. ///
  610. /// \param task The task whose request finished transferring data.
  611. ///
  612. /// \param error If an error occurred, an error object indicating how the transfer failed, otherwise nil.
  613. ///
  614. - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error;
  615. @end
  616. /// The task delegate is responsible for handling all delegate callbacks for the underlying task as well as
  617. /// executing all operations attached to the serial operation queue upon task completion.
  618. SWIFT_CLASS("_TtC16OUIMeetingPlugin12TaskDelegate")
  619. @interface TaskDelegate : NSObject
  620. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  621. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  622. @end
  623. #endif
  624. #if __has_attribute(external_source_symbol)
  625. # pragma clang attribute pop
  626. #endif
  627. #if defined(__cplusplus)
  628. #endif
  629. #pragma clang diagnostic pop
  630. #endif
  631. #else
  632. #error unsupported Swift architecture
  633. #endif