RxCocoa-Swift.h 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  1. // Generated by Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31)
  2. #pragma clang diagnostic push
  3. #if defined(__has_include) && __has_include(<swift/objc-prologue.h>)
  4. # include <swift/objc-prologue.h>
  5. #endif
  6. #pragma clang diagnostic ignored "-Wauto-import"
  7. #include <objc/NSObject.h>
  8. #include <stdint.h>
  9. #include <stddef.h>
  10. #include <stdbool.h>
  11. #if !defined(SWIFT_TYPEDEFS)
  12. # define SWIFT_TYPEDEFS 1
  13. # if defined(__has_include) && __has_include(<uchar.h>)
  14. # include <uchar.h>
  15. # elif !defined(__cplusplus) || __cplusplus < 201103L
  16. typedef uint_least16_t char16_t;
  17. typedef uint_least32_t char32_t;
  18. # endif
  19. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  20. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  21. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  22. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  23. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  24. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  25. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  26. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  27. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  28. #endif
  29. #if !defined(SWIFT_PASTE)
  30. # define SWIFT_PASTE_HELPER(x, y) x##y
  31. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  32. #endif
  33. #if !defined(SWIFT_METATYPE)
  34. # define SWIFT_METATYPE(X) Class
  35. #endif
  36. #if defined(__has_attribute) && __has_attribute(objc_runtime_name)
  37. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  38. #else
  39. # define SWIFT_RUNTIME_NAME(X)
  40. #endif
  41. #if defined(__has_attribute) && __has_attribute(swift_name)
  42. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  43. #else
  44. # define SWIFT_COMPILE_NAME(X)
  45. #endif
  46. #if !defined(SWIFT_CLASS_EXTRA)
  47. # define SWIFT_CLASS_EXTRA
  48. #endif
  49. #if !defined(SWIFT_PROTOCOL_EXTRA)
  50. # define SWIFT_PROTOCOL_EXTRA
  51. #endif
  52. #if !defined(SWIFT_ENUM_EXTRA)
  53. # define SWIFT_ENUM_EXTRA
  54. #endif
  55. #if !defined(SWIFT_CLASS)
  56. # if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
  57. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  58. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  59. # else
  60. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  61. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  62. # endif
  63. #endif
  64. #if !defined(SWIFT_PROTOCOL)
  65. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  66. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  67. #endif
  68. #if !defined(SWIFT_EXTENSION)
  69. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  70. #endif
  71. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  72. # if defined(__has_attribute) && __has_attribute(objc_designated_initializer)
  73. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  74. # else
  75. # define OBJC_DESIGNATED_INITIALIZER
  76. # endif
  77. #endif
  78. #if !defined(SWIFT_ENUM)
  79. # define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
  80. # if defined(__has_feature) && __has_feature(generalized_swift_name)
  81. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type
  82. # else
  83. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name)
  84. # endif
  85. #endif
  86. #if defined(__has_feature) && __has_feature(modules)
  87. @import ObjectiveC;
  88. @import UIKit;
  89. @import Foundation;
  90. @import Foundation.NSURLSession;
  91. #endif
  92. #import <RxCocoa/RxCocoa.h>
  93. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  94. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  95. SWIFT_CLASS("_TtC7RxCocoa8RxTarget")
  96. @interface RxTarget : NSObject
  97. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  98. - (void)dispose;
  99. @end
  100. @class UIBarButtonItem;
  101. SWIFT_CLASS("_TtC7RxCocoa19BarButtonItemTarget")
  102. @interface BarButtonItemTarget : RxTarget
  103. @property (nonatomic, weak) UIBarButtonItem * _Nullable barButtonItem;
  104. @property (nonatomic, copy) void (^ _Null_unspecified callback)(void);
  105. - (nonnull instancetype)initWithBarButtonItem:(UIBarButtonItem * _Nonnull)barButtonItem callback:(void (^ _Nonnull)(void))callback OBJC_DESIGNATED_INITIALIZER;
  106. - (void)dispose;
  107. - (void)action:(id _Nonnull)sender;
  108. @end
  109. @class UICollectionView;
  110. @class NSIndexPath;
  111. @class UICollectionViewCell;
  112. SWIFT_CLASS("_TtC7RxCocoa30CollectionViewDataSourceNotSet")
  113. @interface CollectionViewDataSourceNotSet : NSObject <UICollectionViewDataSource>
  114. - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView;
  115. - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section;
  116. - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  117. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  118. @end
  119. @class UIControl;
  120. SWIFT_CLASS("_TtC7RxCocoa13ControlTarget")
  121. @interface ControlTarget : RxTarget
  122. @property (nonatomic, readonly) SEL _Null_unspecified selector;
  123. @property (nonatomic, weak) UIControl * _Nullable control;
  124. @property (nonatomic, readonly) UIControlEvents controlEvents;
  125. @property (nonatomic, copy) void (^ _Nullable callback)(UIControl * _Nonnull);
  126. - (nonnull instancetype)initWithControl:(UIControl * _Nonnull)control controlEvents:(UIControlEvents)controlEvents callback:(void (^ _Nonnull)(UIControl * _Nonnull))callback OBJC_DESIGNATED_INITIALIZER;
  127. - (void)eventHandler:(UIControl * _Null_unspecified)sender;
  128. - (void)dispose;
  129. @end
  130. /// Base class for DelegateProxyType protocol.
  131. ///
  132. /// This implementation is not thread safe and can be used only from one thread (Main thread).
  133. SWIFT_CLASS("_TtC7RxCocoa13DelegateProxy")
  134. @interface DelegateProxy : _RXDelegateProxy
  135. /// Parent object associated with delegate proxy.
  136. @property (nonatomic, readonly, weak) id _Nullable parentObject;
  137. /// Initializes new instance.
  138. ///
  139. /// \param parentObject Optional parent object that owns <code>DelegateProxy
  140. /// </code> as associated object.
  141. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  142. - (void)interceptedSelector:(SEL _Null_unspecified)selector withArguments:(NSArray * _Null_unspecified)arguments;
  143. /// Returns tag used to identify associated object.
  144. ///
  145. /// \returns Associated object tag.
  146. + (void const * _Null_unspecified)delegateAssociatedObjectTag;
  147. /// Initializes new instance of delegate proxy.
  148. ///
  149. /// \returns Initialized instance of <code>self
  150. /// </code>.
  151. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  152. /// Returns assigned proxy for object.
  153. ///
  154. /// \param object Object that can have assigned delegate proxy.
  155. ///
  156. /// \returns Assigned delegate proxy or <code>nil
  157. /// </code> if no delegate proxy is assigned.
  158. + (id _Nullable)assignedProxyFor:(id _Nonnull)object;
  159. /// Assigns proxy to object.
  160. ///
  161. /// \param object Object that can have assigned delegate proxy.
  162. ///
  163. /// \param proxy Delegate proxy object to assign to <code>object
  164. /// </code>.
  165. + (void)assignProxy:(id _Nonnull)proxy toObject:(id _Nonnull)object;
  166. /// Sets reference of normal delegate that receives all forwarded messages through self.
  167. ///
  168. /// \param forwardToDelegate Reference of delegate that receives all messages through <code>self
  169. /// </code>.
  170. ///
  171. /// \param retainDelegate Should <code>self
  172. /// </code> retain <code>forwardToDelegate
  173. /// </code>.
  174. - (void)setForwardToDelegate:(id _Nullable)delegate retainDelegate:(BOOL)retainDelegate;
  175. /// Returns reference of normal delegate that receives all forwarded messages through self.
  176. ///
  177. /// \returns Value of reference if set or nil.
  178. - (id _Nullable)forwardToDelegate;
  179. + (void const * _Null_unspecified)_pointer:(void const * _Null_unspecified)p;
  180. @end
  181. SWIFT_CLASS("_TtC7RxCocoa11KVOObserver")
  182. @interface KVOObserver : _RXKVOObserver
  183. @property (nonatomic, strong) KVOObserver * _Nullable retainSelf;
  184. - (void)dispose;
  185. @end
  186. @interface NSError (SWIFT_EXTENSION(RxCocoa))
  187. @end
  188. @interface NSLayoutConstraint (SWIFT_EXTENSION(RxCocoa))
  189. @end
  190. @interface NSNotificationCenter (SWIFT_EXTENSION(RxCocoa))
  191. @end
  192. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  193. @end
  194. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  195. @end
  196. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  197. @end
  198. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  199. @end
  200. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  201. @end
  202. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  203. @end
  204. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  205. @end
  206. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  207. @end
  208. @interface NSObject (SWIFT_EXTENSION(RxCocoa))
  209. @end
  210. @interface NSTextStorage (SWIFT_EXTENSION(RxCocoa))
  211. /// Reactive wrapper for delegate.
  212. ///
  213. /// For more information take a look at <code>DelegateProxyType
  214. /// </code> protocol documentation.
  215. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  216. @end
  217. @interface NSURLSession (SWIFT_EXTENSION(RxCocoa))
  218. @end
  219. /// For more information take a look at DelegateProxyType.
  220. SWIFT_CLASS("_TtC7RxCocoa31RxCollectionViewDataSourceProxy")
  221. @interface RxCollectionViewDataSourceProxy : DelegateProxy <UICollectionViewDataSource>
  222. /// Typed parent object.
  223. @property (nonatomic, readonly, weak) UICollectionView * _Nullable collectionView;
  224. /// Initializes RxCollectionViewDataSourceProxy
  225. ///
  226. /// \param parentObject Parent object for delegate proxy.
  227. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  228. /// Required delegate method implementation.
  229. - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section;
  230. /// Required delegate method implementation.
  231. - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  232. /// For more information take a look at DelegateProxyType.
  233. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  234. /// For more information take a look at DelegateProxyType.
  235. + (void const * _Null_unspecified)delegateAssociatedObjectTag;
  236. /// For more information take a look at DelegateProxyType.
  237. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  238. /// For more information take a look at DelegateProxyType.
  239. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  240. /// For more information take a look at DelegateProxyType.
  241. - (void)setForwardToDelegate:(id _Nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate;
  242. @end
  243. @class UIScrollView;
  244. /// For more information take a look at DelegateProxyType.
  245. SWIFT_CLASS("_TtC7RxCocoa25RxScrollViewDelegateProxy")
  246. @interface RxScrollViewDelegateProxy : DelegateProxy <UIScrollViewDelegate>
  247. /// Typed parent object.
  248. @property (nonatomic, readonly, weak) UIScrollView * _Nullable scrollView;
  249. /// Initializes RxScrollViewDelegateProxy
  250. ///
  251. /// \param parentObject Parent object for delegate proxy.
  252. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  253. /// For more information take a look at DelegateProxyType.
  254. - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
  255. /// For more information take a look at DelegateProxyType.
  256. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  257. /// For more information take a look at DelegateProxyType.
  258. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  259. /// For more information take a look at DelegateProxyType.
  260. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  261. @end
  262. /// For more information take a look at DelegateProxyType.
  263. SWIFT_CLASS("_TtC7RxCocoa29RxCollectionViewDelegateProxy")
  264. @interface RxCollectionViewDelegateProxy : RxScrollViewDelegateProxy <UICollectionViewDelegateFlowLayout, UICollectionViewDelegate>
  265. /// Typed parent object.
  266. @property (nonatomic, readonly, weak) UICollectionView * _Nullable collectionView;
  267. /// Initializes RxCollectionViewDelegateProxy
  268. ///
  269. /// \param parentObject Parent object for delegate proxy.
  270. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  271. @end
  272. SWIFT_CLASS("_TtC7RxCocoa25RxPickerViewDelegateProxy")
  273. @interface RxPickerViewDelegateProxy : DelegateProxy <UIPickerViewDelegate>
  274. /// For more information take a look at DelegateProxyType.
  275. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  276. /// For more information take a look at DelegateProxyType.
  277. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  278. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  279. @end
  280. /// For more information take a look at DelegateProxyType.
  281. SWIFT_CLASS("_TtC7RxCocoa24RxSearchBarDelegateProxy")
  282. @interface RxSearchBarDelegateProxy : DelegateProxy <UIBarPositioningDelegate, UISearchBarDelegate>
  283. /// For more information take a look at DelegateProxyType.
  284. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  285. /// For more information take a look at DelegateProxyType.
  286. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  287. /// For more information take a look at DelegateProxyType.
  288. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  289. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  290. @end
  291. /// For more information take a look at DelegateProxyType.
  292. SWIFT_CLASS("_TtC7RxCocoa31RxSearchControllerDelegateProxy")
  293. @interface RxSearchControllerDelegateProxy : DelegateProxy <UISearchControllerDelegate>
  294. /// For more information take a look at DelegateProxyType.
  295. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  296. /// For more information take a look at DelegateProxyType.
  297. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  298. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  299. @end
  300. /// For more information take a look at DelegateProxyType.
  301. SWIFT_CLASS("_TtC7RxCocoa21RxTabBarDelegateProxy")
  302. @interface RxTabBarDelegateProxy : DelegateProxy <UITabBarDelegate>
  303. /// For more information take a look at DelegateProxyType.
  304. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  305. /// For more information take a look at DelegateProxyType.
  306. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  307. /// For more information take a look at DelegateProxyType.
  308. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  309. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  310. @end
  311. @class UITableView;
  312. @class UITableViewCell;
  313. /// For more information take a look at DelegateProxyType.
  314. SWIFT_CLASS("_TtC7RxCocoa26RxTableViewDataSourceProxy")
  315. @interface RxTableViewDataSourceProxy : DelegateProxy <UITableViewDataSource>
  316. /// Typed parent object.
  317. @property (nonatomic, readonly, weak) UITableView * _Nullable tableView;
  318. /// Initializes RxTableViewDataSourceProxy
  319. ///
  320. /// \param parentObject Parent object for delegate proxy.
  321. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  322. /// Required delegate method implementation.
  323. - (NSInteger)numberOfSectionsInTableView:(UITableView * _Nonnull)tableView;
  324. /// Required delegate method implementation.
  325. - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section;
  326. /// Required delegate method implementation.
  327. - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  328. /// For more information take a look at DelegateProxyType.
  329. + (id _Nonnull)createProxyForObject:(id _Nonnull)object;
  330. /// For more information take a look at DelegateProxyType.
  331. + (void const * _Null_unspecified)delegateAssociatedObjectTag;
  332. /// For more information take a look at DelegateProxyType.
  333. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  334. /// For more information take a look at DelegateProxyType.
  335. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  336. /// For more information take a look at DelegateProxyType.
  337. - (void)setForwardToDelegate:(id _Nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate;
  338. @end
  339. /// For more information take a look at DelegateProxyType.
  340. SWIFT_CLASS("_TtC7RxCocoa24RxTableViewDelegateProxy")
  341. @interface RxTableViewDelegateProxy : RxScrollViewDelegateProxy <UITableViewDelegate>
  342. /// Typed parent object.
  343. @property (nonatomic, readonly, weak) UITableView * _Nullable tableView;
  344. /// Initializes RxTableViewDelegateProxy
  345. ///
  346. /// \param parentObject Parent object for delegate proxy.
  347. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  348. @end
  349. SWIFT_CLASS("_TtC7RxCocoa26RxTextStorageDelegateProxy")
  350. @interface RxTextStorageDelegateProxy : DelegateProxy <NSTextStorageDelegate>
  351. /// For more information take a look at DelegateProxyType.
  352. + (void)setCurrentDelegate:(id _Nullable)delegate toObject:(id _Nonnull)object;
  353. /// For more information take a look at DelegateProxyType.
  354. + (id _Nullable)currentDelegateFor:(id _Nonnull)object;
  355. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  356. @end
  357. @class UITextView;
  358. /// For more information take a look at DelegateProxyType.
  359. SWIFT_CLASS("_TtC7RxCocoa23RxTextViewDelegateProxy")
  360. @interface RxTextViewDelegateProxy : RxScrollViewDelegateProxy <UITextViewDelegate>
  361. /// Typed parent object.
  362. @property (nonatomic, readonly, weak) UITextView * _Nullable textView;
  363. /// Initializes RxTextViewDelegateProxy
  364. ///
  365. /// \param parentObject Parent object for delegate proxy.
  366. - (nonnull instancetype)initWithParentObject:(id _Nonnull)parentObject OBJC_DESIGNATED_INITIALIZER;
  367. /// For more information take a look at DelegateProxyType.
  368. - (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text;
  369. @end
  370. SWIFT_CLASS("_TtC7RxCocoa25TableViewDataSourceNotSet")
  371. @interface TableViewDataSourceNotSet : NSObject <UITableViewDataSource>
  372. - (NSInteger)numberOfSectionsInTableView:(UITableView * _Nonnull)tableView;
  373. - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section;
  374. - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  375. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  376. @end
  377. @interface UIActivityIndicatorView (SWIFT_EXTENSION(RxCocoa))
  378. @end
  379. @interface UIAlertAction (SWIFT_EXTENSION(RxCocoa))
  380. @end
  381. @interface UIApplication (SWIFT_EXTENSION(RxCocoa))
  382. @end
  383. @interface UIBarButtonItem (SWIFT_EXTENSION(RxCocoa))
  384. @end
  385. @interface UIButton (SWIFT_EXTENSION(RxCocoa))
  386. @end
  387. @interface UIButton (SWIFT_EXTENSION(RxCocoa))
  388. @end
  389. @interface UICollectionView (SWIFT_EXTENSION(RxCocoa))
  390. @end
  391. @interface UICollectionView (SWIFT_EXTENSION(RxCocoa))
  392. /// Factory method that enables subclasses to implement their own rx_delegate.
  393. ///
  394. /// \returns Instance of delegate proxy that wraps <code>delegate
  395. /// </code>.
  396. - (RxScrollViewDelegateProxy * _Nonnull)rx_createDelegateProxy;
  397. /// Factory method that enables subclasses to implement their own rx_dataSource.
  398. ///
  399. /// \returns Instance of delegate proxy that wraps <code>dataSource
  400. /// </code>.
  401. - (RxCollectionViewDataSourceProxy * _Nonnull)rx_createDataSourceProxy;
  402. /// Reactive wrapper for dataSource.
  403. ///
  404. /// For more information take a look at <code>DelegateProxyType
  405. /// </code> protocol documentation.
  406. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_dataSource;
  407. @end
  408. @interface UIControl (SWIFT_EXTENSION(RxCocoa))
  409. @end
  410. @interface UIDatePicker (SWIFT_EXTENSION(RxCocoa))
  411. @end
  412. @interface UIGestureRecognizer (SWIFT_EXTENSION(RxCocoa))
  413. @end
  414. @interface UIImageView (SWIFT_EXTENSION(RxCocoa))
  415. @end
  416. @interface UILabel (SWIFT_EXTENSION(RxCocoa))
  417. @end
  418. @interface UINavigationItem (SWIFT_EXTENSION(RxCocoa))
  419. @end
  420. @interface UIPageControl (SWIFT_EXTENSION(RxCocoa))
  421. @end
  422. @interface UIPickerView (SWIFT_EXTENSION(RxCocoa))
  423. /// Reactive wrapper for delegate. For more information take a look at DelegateProxyType protocol documentation.
  424. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  425. @end
  426. @interface UIProgressView (SWIFT_EXTENSION(RxCocoa))
  427. @end
  428. @interface UIRefreshControl (SWIFT_EXTENSION(RxCocoa))
  429. @end
  430. @interface UIScrollView (SWIFT_EXTENSION(RxCocoa))
  431. /// Factory method that enables subclasses to implement their own rx_delegate.
  432. ///
  433. /// \returns Instance of delegate proxy that wraps <code>delegate
  434. /// </code>.
  435. - (RxScrollViewDelegateProxy * _Nonnull)rx_createDelegateProxy;
  436. /// Reactive wrapper for delegate.
  437. ///
  438. /// For more information take a look at <code>DelegateProxyType
  439. /// </code> protocol documentation.
  440. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  441. @end
  442. @interface UISearchBar (SWIFT_EXTENSION(RxCocoa))
  443. /// Factory method that enables subclasses to implement their own rx_delegate.
  444. ///
  445. /// \returns Instance of delegate proxy that wraps <code>delegate
  446. /// </code>.
  447. - (RxSearchBarDelegateProxy * _Nonnull)rx_createDelegateProxy;
  448. /// Reactive wrapper for delegate.
  449. ///
  450. /// For more information take a look at <code>DelegateProxyType
  451. /// </code> protocol documentation.
  452. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  453. @end
  454. @interface UISearchController (SWIFT_EXTENSION(RxCocoa))
  455. /// Reactive wrapper for delegate. For more information take a look at DelegateProxyType protocol documentation.
  456. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  457. @end
  458. @interface UISegmentedControl (SWIFT_EXTENSION(RxCocoa))
  459. @end
  460. @interface UISlider (SWIFT_EXTENSION(RxCocoa))
  461. @end
  462. @interface UIStepper (SWIFT_EXTENSION(RxCocoa))
  463. @end
  464. @interface UISwitch (SWIFT_EXTENSION(RxCocoa))
  465. @end
  466. @interface UITabBar (SWIFT_EXTENSION(RxCocoa))
  467. /// Factory method that enables subclasses to implement their own rx_delegate.
  468. ///
  469. /// \returns Instance of delegate proxy that wraps <code>delegate
  470. /// </code>.
  471. - (RxTabBarDelegateProxy * _Nonnull)rx_createDelegateProxy;
  472. /// Reactive wrapper for delegate.
  473. ///
  474. /// For more information take a look at <code>DelegateProxyType
  475. /// </code> protocol documentation.
  476. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_delegate;
  477. @end
  478. @interface UITabBar (SWIFT_EXTENSION(RxCocoa))
  479. @end
  480. @interface UITabBarItem (SWIFT_EXTENSION(RxCocoa))
  481. @end
  482. @interface UITableView (SWIFT_EXTENSION(RxCocoa))
  483. @end
  484. @interface UITableView (SWIFT_EXTENSION(RxCocoa))
  485. /// Factory method that enables subclasses to implement their own rx_delegate.
  486. ///
  487. /// \returns Instance of delegate proxy that wraps <code>delegate
  488. /// </code>.
  489. - (RxScrollViewDelegateProxy * _Nonnull)rx_createDelegateProxy;
  490. /// Factory method that enables subclasses to implement their own rx_dataSource.
  491. ///
  492. /// \returns Instance of delegate proxy that wraps <code>dataSource
  493. /// </code>.
  494. - (RxTableViewDataSourceProxy * _Nonnull)rx_createDataSourceProxy;
  495. /// Reactive wrapper for dataSource.
  496. ///
  497. /// For more information take a look at <code>DelegateProxyType
  498. /// </code> protocol documentation.
  499. @property (nonatomic, readonly, strong) DelegateProxy * _Nonnull rx_dataSource;
  500. @end
  501. @interface UITextField (SWIFT_EXTENSION(RxCocoa))
  502. @end
  503. @interface UITextView (SWIFT_EXTENSION(RxCocoa))
  504. /// Factory method that enables subclasses to implement their own rx_delegate.
  505. ///
  506. /// \returns Instance of delegate proxy that wraps <code>delegate
  507. /// </code>.
  508. - (RxScrollViewDelegateProxy * _Nonnull)rx_createDelegateProxy;
  509. @end
  510. @interface UIView (SWIFT_EXTENSION(RxCocoa))
  511. @end
  512. @interface UIViewController (SWIFT_EXTENSION(RxCocoa))
  513. @end
  514. SWIFT_CLASS("_TtC7RxCocoa40_RxCollectionViewReactiveArrayDataSource")
  515. @interface _RxCollectionViewReactiveArrayDataSource : NSObject <UICollectionViewDataSource>
  516. - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView;
  517. - (NSInteger)_collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section;
  518. - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section;
  519. - (UICollectionViewCell * _Nonnull)_collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  520. - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  521. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  522. @end
  523. SWIFT_CLASS("_TtC7RxCocoa35_RxTableViewReactiveArrayDataSource")
  524. @interface _RxTableViewReactiveArrayDataSource : NSObject <UITableViewDataSource>
  525. - (NSInteger)numberOfSectionsInTableView:(UITableView * _Nonnull)tableView;
  526. - (NSInteger)_tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section;
  527. - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section;
  528. - (UITableViewCell * _Nonnull)_tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  529. - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
  530. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  531. @end
  532. #pragma clang diagnostic pop