| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678 |
- #if 0
- #elif defined(__arm64__) && __arm64__
- // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
- #ifndef OUIMEETINGPLUGIN_SWIFT_H
- #define OUIMEETINGPLUGIN_SWIFT_H
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wgcc-compat"
- #if !defined(__has_include)
- # define __has_include(x) 0
- #endif
- #if !defined(__has_attribute)
- # define __has_attribute(x) 0
- #endif
- #if !defined(__has_feature)
- # define __has_feature(x) 0
- #endif
- #if !defined(__has_warning)
- # define __has_warning(x) 0
- #endif
- #if __has_include(<swift/objc-prologue.h>)
- # include <swift/objc-prologue.h>
- #endif
- #pragma clang diagnostic ignored "-Wauto-import"
- #if defined(__OBJC__)
- #include <Foundation/Foundation.h>
- #endif
- #if defined(__cplusplus)
- #include <cstdint>
- #include <cstddef>
- #include <cstdbool>
- #include <cstring>
- #include <stdlib.h>
- #include <new>
- #include <type_traits>
- #else
- #include <stdint.h>
- #include <stddef.h>
- #include <stdbool.h>
- #include <string.h>
- #endif
- #if defined(__cplusplus)
- #if defined(__arm64e__) && __has_include(<ptrauth.h>)
- # include <ptrauth.h>
- #else
- #pragma clang diagnostic push
- #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
- # ifndef __ptrauth_swift_value_witness_function_pointer
- # define __ptrauth_swift_value_witness_function_pointer(x)
- # endif
- # ifndef __ptrauth_swift_class_method_pointer
- # define __ptrauth_swift_class_method_pointer(x)
- # endif
- #pragma clang diagnostic pop
- #endif
- #endif
- #if !defined(SWIFT_TYPEDEFS)
- # define SWIFT_TYPEDEFS 1
- # if __has_include(<uchar.h>)
- # include <uchar.h>
- # elif !defined(__cplusplus)
- typedef uint_least16_t char16_t;
- typedef uint_least32_t char32_t;
- # endif
- typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
- typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
- typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
- typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
- typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
- typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
- typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
- typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
- typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
- typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
- typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
- typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
- #endif
- #if !defined(SWIFT_PASTE)
- # define SWIFT_PASTE_HELPER(x, y) x##y
- # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
- #endif
- #if !defined(SWIFT_METATYPE)
- # define SWIFT_METATYPE(X) Class
- #endif
- #if !defined(SWIFT_CLASS_PROPERTY)
- # if __has_feature(objc_class_property)
- # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
- # else
- # define SWIFT_CLASS_PROPERTY(...)
- # endif
- #endif
- #if !defined(SWIFT_RUNTIME_NAME)
- # if __has_attribute(objc_runtime_name)
- # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
- # else
- # define SWIFT_RUNTIME_NAME(X)
- # endif
- #endif
- #if !defined(SWIFT_COMPILE_NAME)
- # if __has_attribute(swift_name)
- # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
- # else
- # define SWIFT_COMPILE_NAME(X)
- # endif
- #endif
- #if !defined(SWIFT_METHOD_FAMILY)
- # if __has_attribute(objc_method_family)
- # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
- # else
- # define SWIFT_METHOD_FAMILY(X)
- # endif
- #endif
- #if !defined(SWIFT_NOESCAPE)
- # if __has_attribute(noescape)
- # define SWIFT_NOESCAPE __attribute__((noescape))
- # else
- # define SWIFT_NOESCAPE
- # endif
- #endif
- #if !defined(SWIFT_RELEASES_ARGUMENT)
- # if __has_attribute(ns_consumed)
- # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
- # else
- # define SWIFT_RELEASES_ARGUMENT
- # endif
- #endif
- #if !defined(SWIFT_WARN_UNUSED_RESULT)
- # if __has_attribute(warn_unused_result)
- # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
- # else
- # define SWIFT_WARN_UNUSED_RESULT
- # endif
- #endif
- #if !defined(SWIFT_NORETURN)
- # if __has_attribute(noreturn)
- # define SWIFT_NORETURN __attribute__((noreturn))
- # else
- # define SWIFT_NORETURN
- # endif
- #endif
- #if !defined(SWIFT_CLASS_EXTRA)
- # define SWIFT_CLASS_EXTRA
- #endif
- #if !defined(SWIFT_PROTOCOL_EXTRA)
- # define SWIFT_PROTOCOL_EXTRA
- #endif
- #if !defined(SWIFT_ENUM_EXTRA)
- # define SWIFT_ENUM_EXTRA
- #endif
- #if !defined(SWIFT_CLASS)
- # if __has_attribute(objc_subclassing_restricted)
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
- # else
- # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
- # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
- # endif
- #endif
- #if !defined(SWIFT_RESILIENT_CLASS)
- # if __has_attribute(objc_class_stub)
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
- # else
- # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
- # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
- # endif
- #endif
- #if !defined(SWIFT_PROTOCOL)
- # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
- # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
- #endif
- #if !defined(SWIFT_EXTENSION)
- # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
- #endif
- #if !defined(OBJC_DESIGNATED_INITIALIZER)
- # if __has_attribute(objc_designated_initializer)
- # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
- # else
- # define OBJC_DESIGNATED_INITIALIZER
- # endif
- #endif
- #if !defined(SWIFT_ENUM_ATTR)
- # if __has_attribute(enum_extensibility)
- # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
- # else
- # define SWIFT_ENUM_ATTR(_extensibility)
- # endif
- #endif
- #if !defined(SWIFT_ENUM)
- # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
- # if __has_feature(generalized_swift_name)
- # 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
- # else
- # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
- # endif
- #endif
- #if !defined(SWIFT_UNAVAILABLE)
- # define SWIFT_UNAVAILABLE __attribute__((unavailable))
- #endif
- #if !defined(SWIFT_UNAVAILABLE_MSG)
- # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
- #endif
- #if !defined(SWIFT_AVAILABILITY)
- # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
- #endif
- #if !defined(SWIFT_WEAK_IMPORT)
- # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
- #endif
- #if !defined(SWIFT_DEPRECATED)
- # define SWIFT_DEPRECATED __attribute__((deprecated))
- #endif
- #if !defined(SWIFT_DEPRECATED_MSG)
- # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
- #endif
- #if !defined(SWIFT_DEPRECATED_OBJC)
- # if __has_feature(attribute_diagnose_if_objc)
- # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
- # else
- # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
- # endif
- #endif
- #if defined(__OBJC__)
- #if !defined(IBSegueAction)
- # define IBSegueAction
- #endif
- #endif
- #if !defined(SWIFT_EXTERN)
- # if defined(__cplusplus)
- # define SWIFT_EXTERN extern "C"
- # else
- # define SWIFT_EXTERN extern
- # endif
- #endif
- #if !defined(SWIFT_CALL)
- # define SWIFT_CALL __attribute__((swiftcall))
- #endif
- #if !defined(SWIFT_INDIRECT_RESULT)
- # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
- #endif
- #if !defined(SWIFT_CONTEXT)
- # define SWIFT_CONTEXT __attribute__((swift_context))
- #endif
- #if !defined(SWIFT_ERROR_RESULT)
- # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
- #endif
- #if defined(__cplusplus)
- # define SWIFT_NOEXCEPT noexcept
- #else
- # define SWIFT_NOEXCEPT
- #endif
- #if !defined(SWIFT_C_INLINE_THUNK)
- # if __has_attribute(always_inline)
- # if __has_attribute(nodebug)
- # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
- # else
- # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
- # endif
- # else
- # define SWIFT_C_INLINE_THUNK inline
- # endif
- #endif
- #if defined(_WIN32)
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
- # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
- #endif
- #else
- #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
- # define SWIFT_IMPORT_STDLIB_SYMBOL
- #endif
- #endif
- #if defined(__OBJC__)
- #if __has_feature(objc_modules)
- #if __has_warning("-Watimport-in-framework-header")
- #pragma clang diagnostic ignored "-Watimport-in-framework-header"
- #endif
- @import CoreFoundation;
- @import Foundation;
- @import OUICallingPlugin;
- @import ObjectiveC;
- @import UIKit;
- #endif
- #endif
- #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
- #pragma clang diagnostic ignored "-Wduplicate-method-arg"
- #if __has_warning("-Wpragma-clang-attribute")
- # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
- #endif
- #pragma clang diagnostic ignored "-Wunknown-pragmas"
- #pragma clang diagnostic ignored "-Wnullability"
- #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
- #if __has_attribute(external_source_symbol)
- # pragma push_macro("any")
- # undef any
- # 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))
- # pragma pop_macro("any")
- #endif
- #if defined(__OBJC__)
- @class NSString;
- SWIFT_CLASS("_TtC16OUIMeetingPlugin10APIManager")
- @interface APIManager : NSObject
- SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) APIManager * _Nonnull shared;)
- + (APIManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
- - (void)setBaseWithUrl:(NSString * _Nonnull)url token:(NSString * _Nonnull)token;
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- @end
- @class UIColor;
- @class NSCoder;
- SWIFT_CLASS("_TtC16OUIMeetingPlugin12LayoutButton")
- @interface LayoutButton : UIButton
- - (void)setTitleColor:(UIColor * _Nullable)color forState:(UIControlState)state;
- - (void)setTitle:(NSString * _Nullable)title forState:(UIControlState)state;
- @property (nonatomic, readonly) CGSize intrinsicContentSize;
- - (void)layoutSubviews;
- - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
- @end
- @class UIViewController;
- @class NSBundle;
- SWIFT_CLASS("_TtC16OUIMeetingPlugin24LiveNavigationController")
- @interface LiveNavigationController : UINavigationController
- @property (nonatomic, readonly) BOOL shouldAutorotate;
- @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
- - (nonnull instancetype)initWithNavigationBarClass:(Class _Nullable)navigationBarClass toolbarClass:(Class _Nullable)toolbarClass OBJC_DESIGNATED_INITIALIZER SWIFT_AVAILABILITY(ios,introduced=5.0);
- - (nonnull instancetype)initWithRootViewController:(UIViewController * _Nonnull)rootViewController OBJC_DESIGNATED_INITIALIZER;
- - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER;
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
- @end
- SWIFT_CLASS("_TtC16OUIMeetingPlugin22LiveRoomViewController")
- @interface LiveRoomViewController : UIViewController
- @property (nonatomic, copy) void (^ _Nullable onInvitedHandler)(NSDictionary<NSString *, id> * _Nonnull);
- @property (nonatomic, copy) void (^ _Nullable onDismissHandler)(void);
- @property (nonatomic, copy) void (^ _Nullable onRotationHandler)(UIInterfaceOrientationMask);
- + (LiveRoomViewController * _Nonnull)startMeetingWithLiveURL:(NSString * _Nonnull)liveURL token:(NSString * _Nonnull)token roomID:(NSString * _Nullable)roomID SWIFT_WARN_UNUSED_RESULT;
- + (void)forceDismissWithViewController:(LiveRoomViewController * _Nullable)viewController;
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- - (void)viewDidLoad;
- - (void)viewWillAppear:(BOOL)animated;
- - (void)viewDidAppear:(BOOL)animated;
- - (void)viewWillDisappear:(BOOL)animated;
- - (void)viewDidDisappear:(BOOL)animated;
- @property (nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;
- - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
- @end
- @class Room;
- @class LocalParticipant;
- @class LocalTrackPublication;
- @class RemoteParticipant;
- @class RemoteTrackPublication;
- @class Track;
- @class Participant;
- @class TrackPublication;
- @class NSData;
- @interface LiveRoomViewController (SWIFT_EXTENSION(OUIMeetingPlugin))
- - (void)room:(Room * _Nonnull)room localParticipant:(LocalParticipant * _Nonnull)localParticipant didPublishPublication:(LocalTrackPublication * _Nonnull)publication;
- - (void)room:(Room * _Nonnull)room didUpdateMetadata:(NSString * _Nullable)metadata;
- - (void)room:(Room * _Nonnull)room participantDidLeave:(RemoteParticipant * _Nonnull)participant;
- - (void)room:(Room * _Nonnull)room participantDidJoin:(RemoteParticipant * _Nonnull)participant;
- - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nonnull)participant didSubscribePublication:(RemoteTrackPublication * _Nonnull)publication track:(Track * _Nonnull)track;
- - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nonnull)participant didUnpublishPublication:(RemoteTrackPublication * _Nonnull)publication;
- - (void)room:(Room * _Nonnull)room publication:(RemoteParticipant * _Nonnull)participant didUnsubscribePublication:(RemoteTrackPublication * _Nonnull)publication track:(Track * _Nonnull)track;
- - (void)room:(Room * _Nonnull)room didUpdateSpeakers:(NSArray<Participant *> * _Nonnull)speakers;
- - (void)room:(Room * _Nonnull)room participant:(Participant * _Nonnull)participant publication:(TrackPublication * _Nonnull)publication didUpdateMuted:(BOOL)muted;
- - (void)room:(Room * _Nonnull)room participant:(RemoteParticipant * _Nullable)participant didReceiveData:(NSData * _Nonnull)data topic:(NSString * _Nonnull)topic;
- @end
- @class UITableView;
- @class NSIndexPath;
- @class UITableViewCell;
- SWIFT_CLASS("_TtC16OUIMeetingPlugin26PopoverTableViewController")
- @interface PopoverTableViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- - (void)viewDidLoad;
- - (void)viewWillAppear:(BOOL)animated;
- - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- - (void)tableView:(UITableView * _Nonnull)tableView willDisplayCell:(UITableViewCell * _Nonnull)cell forRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
- - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
- - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
- @end
- @class UIPresentationController;
- @interface PopoverTableViewController (SWIFT_EXTENSION(OUIMeetingPlugin)) <UIPopoverPresentationControllerDelegate>
- - (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController * _Nonnull)controller SWIFT_WARN_UNUSED_RESULT;
- @end
- /// Responsible for handling all delegate callbacks for the underlying session.
- SWIFT_CLASS("_TtC16OUIMeetingPlugin15SessionDelegate")
- @interface SessionDelegate : NSObject
- /// Initializes the <code>SessionDelegate</code> instance.
- ///
- /// returns:
- /// The new <code>SessionDelegate</code> instance.
- - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- /// Returns a <code>Bool</code> indicating whether the <code>SessionDelegate</code> implements or inherits a method that can respond
- /// to a specified message.
- /// \param selector A selector that identifies a message.
- ///
- ///
- /// returns:
- /// <code>true</code> if the receiver implements or inherits a method that can respond to selector, otherwise <code>false</code>.
- - (BOOL)respondsToSelector:(SEL _Nonnull)selector SWIFT_WARN_UNUSED_RESULT;
- @end
- @class NSURLSession;
- @class NSURLSessionDownloadTask;
- @class NSURL;
- @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDownloadDelegate>
- /// Tells the delegate that a download task has finished downloading.
- /// \param session The session containing the download task that finished.
- ///
- /// \param downloadTask The download task that finished.
- ///
- /// \param location A file URL for the temporary file. Because the file is temporary, you must either
- /// open the file for reading or move it to a permanent location in your app’s sandbox
- /// container directory before returning from this delegate method.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location;
- /// Periodically informs the delegate about the download’s progress.
- /// \param session The session containing the download task.
- ///
- /// \param downloadTask The download task.
- ///
- /// \param bytesWritten The number of bytes transferred since the last time this delegate
- /// method was called.
- ///
- /// \param totalBytesWritten The total number of bytes transferred so far.
- ///
- /// \param totalBytesExpectedToWrite The expected length of the file, as provided by the Content-Length
- /// header. If this header was not provided, the value is
- /// <code>NSURLSessionTransferSizeUnknown</code>.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
- /// Tells the delegate that the download task has resumed downloading.
- /// \param session The session containing the download task that finished.
- ///
- /// \param downloadTask The download task that resumed. See explanation in the discussion.
- ///
- /// \param fileOffset If the file’s cache policy or last modified date prevents reuse of the
- /// existing content, then this value is zero. Otherwise, this value is an
- /// integer representing the number of bytes on disk that do not need to be
- /// retrieved again.
- ///
- /// \param expectedTotalBytes The expected length of the file, as provided by the Content-Length header.
- /// If this header was not provided, the value is NSURLSessionTransferSizeUnknown.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes;
- @end
- @class NSURLSessionStreamTask;
- @class NSInputStream;
- @class NSOutputStream;
- SWIFT_AVAILABILITY(tvos,introduced=9.0) SWIFT_AVAILABILITY(macos,introduced=10.11) SWIFT_AVAILABILITY(ios,introduced=9.0)
- @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionStreamDelegate>
- /// Tells the delegate that the read side of the connection has been closed.
- /// \param session The session.
- ///
- /// \param streamTask The stream task.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session readClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
- /// Tells the delegate that the write side of the connection has been closed.
- /// \param session The session.
- ///
- /// \param streamTask The stream task.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session writeClosedForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
- /// Tells the delegate that the system has determined that a better route to the host is available.
- /// \param session The session.
- ///
- /// \param streamTask The stream task.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session betterRouteDiscoveredForStreamTask:(NSURLSessionStreamTask * _Nonnull)streamTask;
- /// Tells the delegate that the stream task has been completed and provides the unopened stream objects.
- /// \param session The session.
- ///
- /// \param streamTask The stream task.
- ///
- /// \param inputStream The new input stream.
- ///
- /// \param outputStream The new output stream.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session streamTask:(NSURLSessionStreamTask * _Nonnull)streamTask didBecomeInputStream:(NSInputStream * _Nonnull)inputStream outputStream:(NSOutputStream * _Nonnull)outputStream;
- @end
- @class NSURLSessionDataTask;
- @class NSURLResponse;
- @class NSCachedURLResponse;
- @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDataDelegate>
- /// Tells the delegate that the data task received the initial reply (headers) from the server.
- /// \param session The session containing the data task that received an initial reply.
- ///
- /// \param dataTask The data task that received an initial reply.
- ///
- /// \param response A URL response object populated with headers.
- ///
- /// \param completionHandler A completion handler that your code calls to continue the transfer, passing a
- /// constant to indicate whether the transfer should continue as a data task or
- /// should become a download task.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveResponse:(NSURLResponse * _Nonnull)response completionHandler:(void (^ _Nonnull)(NSURLSessionResponseDisposition))completionHandler;
- /// Tells the delegate that the data task was changed to a download task.
- /// \param session The session containing the task that was replaced by a download task.
- ///
- /// \param dataTask The data task that was replaced by a download task.
- ///
- /// \param downloadTask The new download task that replaced the data task.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didBecomeDownloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask;
- /// Tells the delegate that the data task has received some of the expected data.
- /// \param session The session containing the data task that provided data.
- ///
- /// \param dataTask The data task that provided data.
- ///
- /// \param data A data object containing the transferred data.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data;
- /// Asks the delegate whether the data (or upload) task should store the response in the cache.
- /// \param session The session containing the data (or upload) task.
- ///
- /// \param dataTask The data (or upload) task.
- ///
- /// \param proposedResponse The default caching behavior. This behavior is determined based on the current
- /// caching policy and the values of certain received headers, such as the Pragma
- /// and Cache-Control headers.
- ///
- /// \param completionHandler A block that your handler must call, providing either the original proposed
- /// response, a modified version of that response, or NULL to prevent caching the
- /// response. If your delegate implements this method, it must call this completion
- /// handler; otherwise, your app leaks memory.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask willCacheResponse:(NSCachedURLResponse * _Nonnull)proposedResponse completionHandler:(void (^ _Nonnull)(NSCachedURLResponse * _Nullable))completionHandler;
- @end
- @class NSURLAuthenticationChallenge;
- @class NSURLCredential;
- @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionDelegate>
- /// Tells the delegate that the session has been invalidated.
- /// \param session The session object that was invalidated.
- ///
- /// \param error The error that caused invalidation, or nil if the invalidation was explicit.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session didBecomeInvalidWithError:(NSError * _Nullable)error;
- /// Requests credentials from the delegate in response to a session-level authentication request from the
- /// remote server.
- /// \param session The session containing the task that requested authentication.
- ///
- /// \param challenge An object that contains the request for authentication.
- ///
- /// \param completionHandler A handler that your delegate method must call providing the disposition
- /// and credential.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
- /// Tells the delegate that all messages enqueued for a session have been delivered.
- /// \param session The session that no longer has any outstanding requests.
- ///
- - (void)URLSessionDidFinishEventsForBackgroundURLSession:(NSURLSession * _Nonnull)session;
- @end
- @class NSURLSessionTask;
- @class NSHTTPURLResponse;
- @class NSURLRequest;
- @class NSURLSessionTaskMetrics;
- @interface SessionDelegate (SWIFT_EXTENSION(OUIMeetingPlugin)) <NSURLSessionTaskDelegate>
- /// Tells the delegate that the remote server requested an HTTP redirect.
- /// \param session The session containing the task whose request resulted in a redirect.
- ///
- /// \param task The task whose request resulted in a redirect.
- ///
- /// \param response An object containing the server’s response to the original request.
- ///
- /// \param request A URL request object filled out with the new location.
- ///
- /// \param completionHandler A closure that your handler should call with either the value of the request
- /// parameter, a modified URL request object, or NULL to refuse the redirect and
- /// return the body of the redirect response.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task willPerformHTTPRedirection:(NSHTTPURLResponse * _Nonnull)response newRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURLRequest * _Nullable))completionHandler;
- /// Requests credentials from the delegate in response to an authentication request from the remote server.
- /// \param session The session containing the task whose request requires authentication.
- ///
- /// \param task The task whose request requires authentication.
- ///
- /// \param challenge An object that contains the request for authentication.
- ///
- /// \param completionHandler A handler that your delegate method must call providing the disposition
- /// and credential.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler;
- /// Tells the delegate when a task requires a new request body stream to send to the remote server.
- /// \param session The session containing the task that needs a new body stream.
- ///
- /// \param task The task that needs a new body stream.
- ///
- /// \param completionHandler A completion handler that your delegate method should call with the new body stream.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task needNewBodyStream:(void (^ _Nonnull)(NSInputStream * _Nullable))completionHandler;
- /// Periodically informs the delegate of the progress of sending body content to the server.
- /// \param session The session containing the data task.
- ///
- /// \param task The data task.
- ///
- /// \param bytesSent The number of bytes sent since the last time this delegate method was called.
- ///
- /// \param totalBytesSent The total number of bytes sent so far.
- ///
- /// \param totalBytesExpectedToSend The expected length of the body data.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
- /// Tells the delegate that the session finished collecting metrics for the task.
- /// \param session The session collecting the metrics.
- ///
- /// \param task The task whose metrics have been collected.
- ///
- /// \param metrics The collected metrics.
- ///
- - (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);
- /// Tells the delegate that the task finished transferring data.
- /// \param session The session containing the task whose request finished transferring data.
- ///
- /// \param task The task whose request finished transferring data.
- ///
- /// \param error If an error occurred, an error object indicating how the transfer failed, otherwise nil.
- ///
- - (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error;
- @end
- /// The task delegate is responsible for handling all delegate callbacks for the underlying task as well as
- /// executing all operations attached to the serial operation queue upon task completion.
- SWIFT_CLASS("_TtC16OUIMeetingPlugin12TaskDelegate")
- @interface TaskDelegate : NSObject
- - (nonnull instancetype)init SWIFT_UNAVAILABLE;
- + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
- @end
- #endif
- #if __has_attribute(external_source_symbol)
- # pragma clang attribute pop
- #endif
- #if defined(__cplusplus)
- #endif
- #pragma clang diagnostic pop
- #endif
- #else
- #error unsupported Swift architecture
- #endif
|