ReactiveCocoa-Swift.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // Generated by Apple Swift version 2.0 (swiftlang-700.0.59 clang-700.0.72)
  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(__has_include) && __has_include(<uchar.h>)
  12. # include <uchar.h>
  13. #elif !defined(__cplusplus) || __cplusplus < 201103L
  14. typedef uint_least16_t char16_t;
  15. typedef uint_least32_t char32_t;
  16. #endif
  17. typedef struct _NSZone NSZone;
  18. #if !defined(SWIFT_PASTE)
  19. # define SWIFT_PASTE_HELPER(x, y) x##y
  20. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  21. #endif
  22. #if !defined(SWIFT_METATYPE)
  23. # define SWIFT_METATYPE(X) Class
  24. #endif
  25. #if defined(__has_attribute) && __has_attribute(objc_runtime_name)
  26. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  27. #else
  28. # define SWIFT_RUNTIME_NAME(X)
  29. #endif
  30. #if defined(__has_attribute) && __has_attribute(swift_name)
  31. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  32. #else
  33. # define SWIFT_COMPILE_NAME(X)
  34. #endif
  35. #if !defined(SWIFT_CLASS_EXTRA)
  36. # define SWIFT_CLASS_EXTRA
  37. #endif
  38. #if !defined(SWIFT_PROTOCOL_EXTRA)
  39. # define SWIFT_PROTOCOL_EXTRA
  40. #endif
  41. #if !defined(SWIFT_ENUM_EXTRA)
  42. # define SWIFT_ENUM_EXTRA
  43. #endif
  44. #if !defined(SWIFT_CLASS)
  45. # if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted)
  46. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  47. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  48. # else
  49. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  50. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  51. # endif
  52. #endif
  53. #if !defined(SWIFT_PROTOCOL)
  54. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  55. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  56. #endif
  57. #if !defined(SWIFT_EXTENSION)
  58. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  59. #endif
  60. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  61. # if defined(__has_attribute) && __has_attribute(objc_designated_initializer)
  62. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  63. # else
  64. # define OBJC_DESIGNATED_INITIALIZER
  65. # endif
  66. #endif
  67. #if !defined(SWIFT_ENUM)
  68. # define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type
  69. #endif
  70. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  71. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  72. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  73. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  74. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  75. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  76. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  77. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  78. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  79. #if defined(__has_feature) && __has_feature(modules)
  80. @import ObjectiveC;
  81. @import Foundation;
  82. @import Foundation.NSURLSession;
  83. #endif
  84. #import <ReactiveCocoa/ReactiveCocoa.h>
  85. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  86. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  87. /// Wraps an Action for use by a GUI control (such as NSControl or UIControl), with KVO, or with Cocoa Bindings.
  88. SWIFT_CLASS("_TtC13ReactiveCocoa11CocoaAction")
  89. @interface CocoaAction : NSObject
  90. /// The selector that a caller should invoke upon a CocoaAction in order to execute it.
  91. + (SEL __null_unspecified)selector;
  92. /// Whether the action is enabled.
  93. ///
  94. /// This property will only change on the main thread, and will generate a
  95. /// KVO notification for every change.
  96. @property (nonatomic, readonly) BOOL enabled;
  97. /// Whether the action is executing.
  98. ///
  99. /// This property will only change on the main thread, and will generate a
  100. /// KVO notification for every change.
  101. @property (nonatomic, readonly) BOOL executing;
  102. /// Attempts to execute the underlying action with the given input, subject to the behavior described by the initializer that was used.
  103. - (IBAction)execute:(id __nullable)input;
  104. + (BOOL)automaticallyNotifiesObserversForKey:(NSString * __nonnull)key;
  105. @end
  106. /// Wraps a dynamic property, or one defined in Objective-C, using Key-Value Coding and Key-Value Observing.
  107. ///
  108. /// Use this class only as a last resort! <code>MutableProperty
  109. /// </code> is generally better
  110. /// unless KVC/KVO is required by the API you're using (for example,
  111. /// <code>NSOperation
  112. /// </code>).
  113. SWIFT_CLASS("_TtC13ReactiveCocoa15DynamicProperty")
  114. @interface DynamicProperty : RACDynamicPropertySuperclass
  115. /// The current value of the property, as read and written using Key-Value Coding.
  116. @property (nonatomic, getter=rac_value, setter=setRac_value:) id __nullable value;
  117. /// Initializes a property that will observe and set the given key path of the given object. object must support weak references!
  118. - (nonnull instancetype)initWithObject:(NSObject * __nullable)object keyPath:(NSString * __nonnull)keyPath OBJC_DESIGNATED_INITIALIZER;
  119. @end
  120. @interface NSNotificationCenter (SWIFT_EXTENSION(ReactiveCocoa))
  121. @end
  122. @interface NSURLSession (SWIFT_EXTENSION(ReactiveCocoa))
  123. @end
  124. @interface RACCommand (SWIFT_EXTENSION(ReactiveCocoa))
  125. @end
  126. @interface RACDisposable (SWIFT_EXTENSION(ReactiveCocoa))
  127. @end
  128. @class NSDate;
  129. @interface RACScheduler (SWIFT_EXTENSION(ReactiveCocoa))
  130. @property (nonatomic, readonly) NSDate * __nonnull currentDate;
  131. @end
  132. @interface RACSignal (SWIFT_EXTENSION(ReactiveCocoa))
  133. @end
  134. #pragma clang diagnostic pop