BluetoothUnityAPI-Swift.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. // Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
  2. #ifndef BLUETOOTHUNITYAPI_SWIFT_H
  3. #define BLUETOOTHUNITYAPI_SWIFT_H
  4. #pragma clang diagnostic push
  5. #pragma clang diagnostic ignored "-Wgcc-compat"
  6. #if !defined(__has_include)
  7. # define __has_include(x) 0
  8. #endif
  9. #if !defined(__has_attribute)
  10. # define __has_attribute(x) 0
  11. #endif
  12. #if !defined(__has_feature)
  13. # define __has_feature(x) 0
  14. #endif
  15. #if !defined(__has_warning)
  16. # define __has_warning(x) 0
  17. #endif
  18. #if __has_include(<swift/objc-prologue.h>)
  19. # include <swift/objc-prologue.h>
  20. #endif
  21. #pragma clang diagnostic ignored "-Wauto-import"
  22. #include <Foundation/Foundation.h>
  23. #include <stdint.h>
  24. #include <stddef.h>
  25. #include <stdbool.h>
  26. #if !defined(SWIFT_TYPEDEFS)
  27. # define SWIFT_TYPEDEFS 1
  28. # if __has_include(<uchar.h>)
  29. # include <uchar.h>
  30. # elif !defined(__cplusplus)
  31. typedef uint_least16_t char16_t;
  32. typedef uint_least32_t char32_t;
  33. # endif
  34. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  35. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  36. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  37. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  38. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  39. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  40. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  41. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  42. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  43. typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  44. typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  45. typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  46. #endif
  47. #if !defined(SWIFT_PASTE)
  48. # define SWIFT_PASTE_HELPER(x, y) x##y
  49. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  50. #endif
  51. #if !defined(SWIFT_METATYPE)
  52. # define SWIFT_METATYPE(X) Class
  53. #endif
  54. #if !defined(SWIFT_CLASS_PROPERTY)
  55. # if __has_feature(objc_class_property)
  56. # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  57. # else
  58. # define SWIFT_CLASS_PROPERTY(...)
  59. # endif
  60. #endif
  61. #if __has_attribute(objc_runtime_name)
  62. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  63. #else
  64. # define SWIFT_RUNTIME_NAME(X)
  65. #endif
  66. #if __has_attribute(swift_name)
  67. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  68. #else
  69. # define SWIFT_COMPILE_NAME(X)
  70. #endif
  71. #if __has_attribute(objc_method_family)
  72. # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  73. #else
  74. # define SWIFT_METHOD_FAMILY(X)
  75. #endif
  76. #if __has_attribute(noescape)
  77. # define SWIFT_NOESCAPE __attribute__((noescape))
  78. #else
  79. # define SWIFT_NOESCAPE
  80. #endif
  81. #if __has_attribute(ns_consumed)
  82. # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
  83. #else
  84. # define SWIFT_RELEASES_ARGUMENT
  85. #endif
  86. #if __has_attribute(warn_unused_result)
  87. # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  88. #else
  89. # define SWIFT_WARN_UNUSED_RESULT
  90. #endif
  91. #if __has_attribute(noreturn)
  92. # define SWIFT_NORETURN __attribute__((noreturn))
  93. #else
  94. # define SWIFT_NORETURN
  95. #endif
  96. #if !defined(SWIFT_CLASS_EXTRA)
  97. # define SWIFT_CLASS_EXTRA
  98. #endif
  99. #if !defined(SWIFT_PROTOCOL_EXTRA)
  100. # define SWIFT_PROTOCOL_EXTRA
  101. #endif
  102. #if !defined(SWIFT_ENUM_EXTRA)
  103. # define SWIFT_ENUM_EXTRA
  104. #endif
  105. #if !defined(SWIFT_CLASS)
  106. # if __has_attribute(objc_subclassing_restricted)
  107. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  108. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  109. # else
  110. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  111. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  112. # endif
  113. #endif
  114. #if !defined(SWIFT_RESILIENT_CLASS)
  115. # if __has_attribute(objc_class_stub)
  116. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  117. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  118. # else
  119. # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  120. # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  121. # endif
  122. #endif
  123. #if !defined(SWIFT_PROTOCOL)
  124. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  125. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  126. #endif
  127. #if !defined(SWIFT_EXTENSION)
  128. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  129. #endif
  130. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  131. # if __has_attribute(objc_designated_initializer)
  132. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  133. # else
  134. # define OBJC_DESIGNATED_INITIALIZER
  135. # endif
  136. #endif
  137. #if !defined(SWIFT_ENUM_ATTR)
  138. # if defined(__has_attribute) && __has_attribute(enum_extensibility)
  139. # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  140. # else
  141. # define SWIFT_ENUM_ATTR(_extensibility)
  142. # endif
  143. #endif
  144. #if !defined(SWIFT_ENUM)
  145. # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  146. # if __has_feature(generalized_swift_name)
  147. # 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
  148. # else
  149. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  150. # endif
  151. #endif
  152. #if !defined(SWIFT_UNAVAILABLE)
  153. # define SWIFT_UNAVAILABLE __attribute__((unavailable))
  154. #endif
  155. #if !defined(SWIFT_UNAVAILABLE_MSG)
  156. # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  157. #endif
  158. #if !defined(SWIFT_AVAILABILITY)
  159. # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  160. #endif
  161. #if !defined(SWIFT_WEAK_IMPORT)
  162. # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  163. #endif
  164. #if !defined(SWIFT_DEPRECATED)
  165. # define SWIFT_DEPRECATED __attribute__((deprecated))
  166. #endif
  167. #if !defined(SWIFT_DEPRECATED_MSG)
  168. # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  169. #endif
  170. #if __has_feature(attribute_diagnose_if_objc)
  171. # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  172. #else
  173. # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  174. #endif
  175. #if !defined(IBSegueAction)
  176. # define IBSegueAction
  177. #endif
  178. #if __has_feature(modules)
  179. #if __has_warning("-Watimport-in-framework-header")
  180. #pragma clang diagnostic ignored "-Watimport-in-framework-header"
  181. #endif
  182. @import CoreBluetooth;
  183. @import ObjectiveC;
  184. #endif
  185. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  186. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  187. #if __has_warning("-Wpragma-clang-attribute")
  188. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  189. #endif
  190. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  191. #pragma clang diagnostic ignored "-Wnullability"
  192. #if __has_attribute(external_source_symbol)
  193. # pragma push_macro("any")
  194. # undef any
  195. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="BluetoothUnityAPI",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  196. # pragma pop_macro("any")
  197. #endif
  198. @protocol IStreamManager;
  199. @protocol BluetoothEventListener;
  200. @class BluetoothDevice;
  201. @class BluetoothHelperCharacteristic;
  202. @class BluetoothHelperService;
  203. SWIFT_CLASS("_TtC17BluetoothUnityAPI15BluetoothHelper")
  204. @interface BluetoothHelper : NSObject
  205. - (nullable instancetype)initWithDeviceName:(NSString * _Nonnull)deviceName error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
  206. - (BOOL)startListeningAndReturnError:(NSError * _Nullable * _Nullable)error;
  207. - (BOOL)sendData:(NSString * _Nonnull)data error:(NSError * _Nullable * _Nullable)error;
  208. - (BOOL)sendBData:(NSArray<NSNumber *> * _Nonnull)data error:(NSError * _Nullable * _Nullable)error;
  209. - (void)Disconnect;
  210. - (BOOL)ScanNearbyDevices SWIFT_WARN_UNUSED_RESULT;
  211. - (BOOL)ConnectAndReturnError:(NSError * _Nullable * _Nullable)error;
  212. - (BOOL)isConnected SWIFT_WARN_UNUSED_RESULT;
  213. - (void)InvokeOnConnected;
  214. - (void)setTerminatorBasedStream:(NSString * _Nonnull)separator :(BOOL)appendTerminator;
  215. - (void)setCustomStreamManager:(id <IStreamManager> _Nonnull)streamManager;
  216. - (void)setBytesTerminatorBasedStream:(NSArray<NSNumber *> * _Nonnull)separator :(BOOL)appendTerminator;
  217. - (void)setLengthBasedStream;
  218. - (void)setFixedLengthBasedStream:(NSInteger)length;
  219. - (void)setOnEventReceivedListener:(id <BluetoothEventListener> _Nonnull)listener;
  220. - (NSString * _Nullable)getDeviceName SWIFT_WARN_UNUSED_RESULT;
  221. - (NSString * _Nullable)getDeviceAddress SWIFT_WARN_UNUSED_RESULT;
  222. - (NSArray<BluetoothDevice *> * _Nonnull)getNearbyDevices SWIFT_WARN_UNUSED_RESULT;
  223. - (NSString * _Nonnull)getBluetoothDeviceName SWIFT_WARN_UNUSED_RESULT;
  224. - (NSString * _Nonnull)getBluetoothDeviceAddress SWIFT_WARN_UNUSED_RESULT;
  225. - (int8_t)getBluetoothDeviceRssi SWIFT_WARN_UNUSED_RESULT;
  226. - (BOOL)isDevicePaired SWIFT_WARN_UNUSED_RESULT;
  227. - (void)setDeviceName:(NSString * _Nonnull)deviceName;
  228. - (void)setDeviceAddress:(NSString * _Nonnull)deviceAddress;
  229. - (NSInteger)getLastError SWIFT_WARN_UNUSED_RESULT;
  230. - (BOOL)isBluetoothEnabled SWIFT_WARN_UNUSED_RESULT;
  231. - (NSArray<BluetoothDevice *> * _Nullable)getPairedDevicesListAndReturnError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
  232. - (BOOL)subscribe:(BluetoothHelperCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable * _Nullable)error;
  233. - (BOOL)writeCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic :(NSArray<NSNumber *> * _Nonnull)value error:(NSError * _Nullable * _Nullable)error;
  234. - (BOOL)readCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable * _Nullable)error;
  235. - (BOOL)writeStringCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic :(NSString * _Nonnull)data error:(NSError * _Nullable * _Nullable)error;
  236. - (int16_t)getId SWIFT_WARN_UNUSED_RESULT;
  237. - (BOOL)setTxCharacteristic:(NSString * _Nonnull)characteristic :(NSString * _Nonnull)service error:(NSError * _Nullable * _Nullable)error;
  238. - (BOOL)setRxCharacteristic:(NSString * _Nonnull)characteristic :(NSString * _Nonnull)service error:(NSError * _Nullable * _Nullable)error;
  239. - (NSArray<BluetoothHelperService *> * _Nullable)getGattServicesAndReturnError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
  240. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  241. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  242. @end
  243. @class CBCharacteristic;
  244. @class CBPeripheral;
  245. @class CBService;
  246. SWIFT_CLASS("_TtC17BluetoothUnityAPI18BLEBluetoothHelper")
  247. @interface BLEBluetoothHelper : BluetoothHelper <CBPeripheralDelegate>
  248. - (nullable instancetype)initWithDeviceName:(NSString * _Nonnull)deviceName error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
  249. - (BOOL)ScanNearbyDevices SWIFT_WARN_UNUSED_RESULT;
  250. - (CBCharacteristic * _Nullable)getTxCharacteristic SWIFT_WARN_UNUSED_RESULT;
  251. - (CBPeripheral * _Nullable)getPeriferal SWIFT_WARN_UNUSED_RESULT;
  252. - (NSArray<BluetoothDevice *> * _Nullable)getPairedDevicesListAndReturnError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
  253. - (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverServices:(NSError * _Nullable)error;
  254. - (void)peripheral:(CBPeripheral * _Nonnull)peripheral didDiscoverCharacteristicsForService:(CBService * _Nonnull)service error:(NSError * _Nullable)error;
  255. - (BOOL)ConnectAndReturnError:(NSError * _Nullable * _Nullable)error;
  256. - (BOOL)isBluetoothEnabled SWIFT_WARN_UNUSED_RESULT;
  257. - (void)Disconnect;
  258. - (void)peripheral:(CBPeripheral * _Nonnull)peripheral didUpdateNotificationStateForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error;
  259. - (void)peripheral:(CBPeripheral * _Nonnull)peripheral didUpdateValueForCharacteristic:(CBCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable)error;
  260. - (BOOL)subscribe:(BluetoothHelperCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable * _Nullable)error;
  261. - (BOOL)writeCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic :(NSArray<NSNumber *> * _Nonnull)value error:(NSError * _Nullable * _Nullable)error;
  262. - (BOOL)readCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic error:(NSError * _Nullable * _Nullable)error;
  263. - (BOOL)setTxCharacteristic:(NSString * _Nonnull)characteristic :(NSString * _Nonnull)service error:(NSError * _Nullable * _Nullable)error;
  264. - (BOOL)setRxCharacteristic:(NSString * _Nonnull)characteristic :(NSString * _Nonnull)service error:(NSError * _Nullable * _Nullable)error;
  265. - (NSArray<BluetoothHelperService *> * _Nullable)getGattServicesAndReturnError:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
  266. @end
  267. SWIFT_PROTOCOL("_TtP17BluetoothUnityAPI20InvokeOnDataReceived_")
  268. @protocol InvokeOnDataReceived
  269. - (void)InvokeOnDataReceived:(NSArray<NSNumber *> * _Nonnull)buff;
  270. @end
  271. SWIFT_CLASS("_TtC17BluetoothUnityAPI22BluetoothStreamManager")
  272. @interface BluetoothStreamManager : NSObject
  273. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  274. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  275. @end
  276. SWIFT_CLASS("_TtC17BluetoothUnityAPI28BluetoothCustomStreamManager")
  277. @interface BluetoothCustomStreamManager : BluetoothStreamManager <InvokeOnDataReceived>
  278. - (nonnull instancetype)init:(BluetoothHelper * _Nonnull)helper :(id <IStreamManager> _Nonnull)streamManager OBJC_DESIGNATED_INITIALIZER;
  279. - (void)sendData;
  280. - (void)InvokeOnDataReceived:(NSArray<NSNumber *> * _Nonnull)buff;
  281. @end
  282. SWIFT_CLASS("_TtC17BluetoothUnityAPI15BluetoothDevice")
  283. @interface BluetoothDevice : NSObject
  284. - (nonnull instancetype)init:(NSString * _Nonnull)deviceName :(NSString * _Nonnull)deviceAddress :(int8_t)rssi OBJC_DESIGNATED_INITIALIZER;
  285. - (nonnull instancetype)init:(NSString * _Nonnull)deviceName uuid:(NSString * _Nonnull)uuid :(int8_t)rssi OBJC_DESIGNATED_INITIALIZER;
  286. - (NSString * _Nonnull)getDeviceName SWIFT_WARN_UNUSED_RESULT;
  287. - (NSString * _Nonnull)getDeviceAddress SWIFT_WARN_UNUSED_RESULT;
  288. - (int8_t)getRssi SWIFT_WARN_UNUSED_RESULT;
  289. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  290. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  291. @end
  292. SWIFT_PROTOCOL("_TtP17BluetoothUnityAPI22BluetoothEventListener_")
  293. @protocol BluetoothEventListener
  294. - (void)OnDataReceived:(NSString * _Nonnull)data;
  295. - (void)OnBinaryDataReceived:(NSArray<NSNumber *> * _Nonnull)data;
  296. - (void)OnConnected;
  297. - (void)OnConnectionFailed;
  298. - (void)OnScanEnded;
  299. - (void)OnServiceNotFound:(NSString * _Nonnull)service;
  300. - (void)OnCharacteristicNotFound:(NSString * _Nonnull)service :(NSString * _Nonnull)characteristic;
  301. - (void)OnCharacteristicChanged:(NSArray<NSNumber *> * _Nonnull)value :(BluetoothHelperCharacteristic * _Nonnull)characteristic;
  302. @end
  303. SWIFT_CLASS("_TtC17BluetoothUnityAPI29BluetoothHelperCharacteristic")
  304. @interface BluetoothHelperCharacteristic : NSObject
  305. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  306. - (nonnull instancetype)init:(NSString * _Nonnull)name OBJC_DESIGNATED_INITIALIZER;
  307. - (void)setName:(NSString * _Nonnull)name;
  308. - (NSString * _Nonnull)getName SWIFT_WARN_UNUSED_RESULT;
  309. - (void)setService:(NSString * _Nonnull)service;
  310. - (NSString * _Nonnull)getService SWIFT_WARN_UNUSED_RESULT;
  311. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  312. @end
  313. SWIFT_CLASS("_TtC17BluetoothUnityAPI22BluetoothHelperService")
  314. @interface BluetoothHelperService : NSObject
  315. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  316. - (nonnull instancetype)init:(NSString * _Nonnull)name OBJC_DESIGNATED_INITIALIZER;
  317. - (void)setName:(NSString * _Nonnull)name;
  318. - (NSString * _Nonnull)getName SWIFT_WARN_UNUSED_RESULT;
  319. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  320. - (void)addCharacteristic:(BluetoothHelperCharacteristic * _Nonnull)characteristic;
  321. - (NSArray<BluetoothHelperCharacteristic *> * _Nonnull)getCharacteristics SWIFT_WARN_UNUSED_RESULT;
  322. @end
  323. SWIFT_PROTOCOL("_TtP17BluetoothUnityAPI14IStreamManager_")
  324. @protocol IStreamManager
  325. - (NSArray<NSNumber *> * _Nonnull)formatDataToSend:(NSArray<NSNumber *> * _Nonnull)buff SWIFT_WARN_UNUSED_RESULT;
  326. - (void)handleReceivedData:(NSArray<NSNumber *> * _Nonnull)buff;
  327. - (void)setInvokeOnDataReceived:(id <InvokeOnDataReceived> _Nonnull)listener;
  328. @end
  329. SWIFT_CLASS("_TtC17BluetoothUnityAPI20ScanResultPeripheral")
  330. @interface ScanResultPeripheral : NSObject
  331. - (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
  332. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  333. + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
  334. @end
  335. #if __has_attribute(external_source_symbol)
  336. # pragma clang attribute pop
  337. #endif
  338. #pragma clang diagnostic pop
  339. #endif