2 #elif defined(__arm64__) && __arm64__
3 // Generated by Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
4 #ifndef ALIIOTCONNECTKIT_SWIFT_H
5 #define ALIIOTCONNECTKIT_SWIFT_H
6 #pragma clang diagnostic push
7 #pragma clang diagnostic ignored "-Wgcc-compat"
9 #if !defined(__has_include)
10 # define __has_include(x) 0
12 #if !defined(__has_attribute)
13 # define __has_attribute(x) 0
15 #if !defined(__has_feature)
16 # define __has_feature(x) 0
18 #if !defined(__has_warning)
19 # define __has_warning(x) 0
22 #if __has_include(<swift/objc-prologue.h>)
23 # include <swift/objc-prologue.h>
26 #pragma clang diagnostic ignored "-Wauto-import"
28 #include <Foundation/Foundation.h>
30 #if defined(__cplusplus)
37 #include <type_traits>
44 #if defined(__cplusplus)
45 #if defined(__arm64e__) && __has_include(<ptrauth.h>)
48 #pragma clang diagnostic push
49 #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50 # ifndef __ptrauth_swift_value_witness_function_pointer
51 # define __ptrauth_swift_value_witness_function_pointer(x)
53 # ifndef __ptrauth_swift_class_method_pointer
54 # define __ptrauth_swift_class_method_pointer(x)
56 #pragma clang diagnostic pop
60 #if !defined(SWIFT_TYPEDEFS)
61 # define SWIFT_TYPEDEFS 1
62 # if __has_include(<uchar.h>)
64 # elif !defined(__cplusplus)
65 typedef uint_least16_t char16_t;
66 typedef uint_least32_t char32_t;
68 typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
69 typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
70 typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
71 typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
72 typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
73 typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
74 typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
75 typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
76 typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
77 typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
78 typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
79 typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
82 #if !defined(SWIFT_PASTE)
83 # define SWIFT_PASTE_HELPER(x, y) x##y
84 # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
86 #if !defined(SWIFT_METATYPE)
87 # define SWIFT_METATYPE(X) Class
89 #if !defined(SWIFT_CLASS_PROPERTY)
90 # if __has_feature(objc_class_property)
91 # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
93 # define SWIFT_CLASS_PROPERTY(...)
96 #if !defined(SWIFT_RUNTIME_NAME)
97 # if __has_attribute(objc_runtime_name)
98 # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
100 # define SWIFT_RUNTIME_NAME(X)
103 #if !defined(SWIFT_COMPILE_NAME)
104 # if __has_attribute(swift_name)
105 # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
107 # define SWIFT_COMPILE_NAME(X)
110 #if !defined(SWIFT_METHOD_FAMILY)
111 # if __has_attribute(objc_method_family)
112 # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
114 # define SWIFT_METHOD_FAMILY(X)
117 #if !defined(SWIFT_NOESCAPE)
118 # if __has_attribute(noescape)
119 # define SWIFT_NOESCAPE __attribute__((noescape))
121 # define SWIFT_NOESCAPE
124 #if !defined(SWIFT_RELEASES_ARGUMENT)
125 # if __has_attribute(ns_consumed)
126 # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
128 # define SWIFT_RELEASES_ARGUMENT
131 #if !defined(SWIFT_WARN_UNUSED_RESULT)
132 # if __has_attribute(warn_unused_result)
133 # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
135 # define SWIFT_WARN_UNUSED_RESULT
138 #if !defined(SWIFT_NORETURN)
139 # if __has_attribute(noreturn)
140 # define SWIFT_NORETURN __attribute__((noreturn))
142 # define SWIFT_NORETURN
145 #if !defined(SWIFT_CLASS_EXTRA)
146 # define SWIFT_CLASS_EXTRA
148 #if !defined(SWIFT_PROTOCOL_EXTRA)
149 # define SWIFT_PROTOCOL_EXTRA
151 #if !defined(SWIFT_ENUM_EXTRA)
152 # define SWIFT_ENUM_EXTRA
154 #if !defined(SWIFT_CLASS)
155 # if __has_attribute(objc_subclassing_restricted)
156 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
157 # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
159 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
160 # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
163 #if !defined(SWIFT_RESILIENT_CLASS)
164 # if __has_attribute(objc_class_stub)
165 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
166 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
168 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
169 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
172 #if !defined(SWIFT_PROTOCOL)
173 # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
174 # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
176 #if !defined(SWIFT_EXTENSION)
177 # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
179 #if !defined(OBJC_DESIGNATED_INITIALIZER)
180 # if __has_attribute(objc_designated_initializer)
181 # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
183 # define OBJC_DESIGNATED_INITIALIZER
186 #if !defined(SWIFT_ENUM_ATTR)
187 # if __has_attribute(enum_extensibility)
188 # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
190 # define SWIFT_ENUM_ATTR(_extensibility)
193 #if !defined(SWIFT_ENUM)
194 # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
195 # if __has_feature(generalized_swift_name)
196 # 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
198 # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
201 #if !defined(SWIFT_UNAVAILABLE)
202 # define SWIFT_UNAVAILABLE __attribute__((unavailable))
204 #if !defined(SWIFT_UNAVAILABLE_MSG)
205 # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
207 #if !defined(SWIFT_AVAILABILITY)
208 # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
210 #if !defined(SWIFT_WEAK_IMPORT)
211 # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
213 #if !defined(SWIFT_DEPRECATED)
214 # define SWIFT_DEPRECATED __attribute__((deprecated))
216 #if !defined(SWIFT_DEPRECATED_MSG)
217 # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
219 #if !defined(SWIFT_DEPRECATED_OBJC)
220 # if __has_feature(attribute_diagnose_if_objc)
221 # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
223 # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
226 #if defined(__OBJC__)
227 #if !defined(IBSegueAction)
228 # define IBSegueAction
231 #if !defined(SWIFT_EXTERN)
232 # if defined(__cplusplus)
233 # define SWIFT_EXTERN extern "C"
235 # define SWIFT_EXTERN extern
238 #if !defined(SWIFT_CALL)
239 # define SWIFT_CALL __attribute__((swiftcall))
241 #if !defined(SWIFT_INDIRECT_RESULT)
242 # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
244 #if !defined(SWIFT_CONTEXT)
245 # define SWIFT_CONTEXT __attribute__((swift_context))
247 #if !defined(SWIFT_ERROR_RESULT)
248 # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
250 #if defined(__cplusplus)
251 # define SWIFT_NOEXCEPT noexcept
253 # define SWIFT_NOEXCEPT
255 #if !defined(SWIFT_C_INLINE_THUNK)
256 # if __has_attribute(always_inline)
257 # if __has_attribute(nodebug)
258 # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
260 # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
263 # define SWIFT_C_INLINE_THUNK inline
267 #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
268 # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
271 #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
272 # define SWIFT_IMPORT_STDLIB_SYMBOL
275 #if defined(__OBJC__)
276 #if __has_feature(objc_modules)
277 #if __has_warning("-Watimport-in-framework-header")
278 #pragma clang diagnostic ignored "-Watimport-in-framework-header"
285 #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
286 #pragma clang diagnostic ignored "-Wduplicate-method-arg"
287 #if __has_warning("-Wpragma-clang-attribute")
288 # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
290 #pragma clang diagnostic ignored "-Wunknown-pragmas"
291 #pragma clang diagnostic ignored "-Wnullability"
292 #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
294 #if __has_attribute(external_source_symbol)
295 # pragma push_macro("any")
297 # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AliIotConnectKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
298 # pragma pop_macro("any")
301 #if defined(__OBJC__)
303 SWIFT_CLASS("_TtC16AliIotConnectKit23AliCloudIotLogManager_C")
304 @interface AliCloudIotLogManager_C : NSObject
305 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AliCloudIotLogManager_C * _Nonnull shared;)
306 + (AliCloudIotLogManager_C * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
307 - (nonnull instancetype)init SWIFT_UNAVAILABLE;
308 + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
310 /// \param isOpen 是否开启日志,为TRUE时,打印日志
312 - (void)switchLogStatus:(BOOL)isOpen;
313 - (void)switchMQTTLogStatus:(BOOL)isOpen;
317 SWIFT_PROTOCOL("_TtP16AliIotConnectKit28AliCloudIotSdkInitDelegate_C_")
318 @protocol AliCloudIotSdkInitDelegate_C
319 /// SDK初始化结果,注意:成功不代表MQTT长连接通道建立成功
320 /// \param successed 是否初始化成功
322 /// \param error 初始化失败时的错误信息
324 - (void)onInitWithSuccessed:(BOOL)successed error:(NSError * _Nullable)error;
326 /// \param successed 是否注销初始化成功
328 /// \param error 失败时的错误信息
330 - (void)onDeinitWithSuccessed:(BOOL)successed error:(NSError * _Nullable)error;
333 @protocol BleNeedSendDataDelegate_C;
334 @protocol IotStateDelatege_C;
338 SWIFT_CLASS("_TtC16AliIotConnectKit20AliConnectMananger_C")
339 @interface AliConnectMananger_C : NSObject
340 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AliConnectMananger_C * _Nonnull shared;)
341 + (AliConnectMananger_C * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
342 - (nonnull instancetype)init SWIFT_UNAVAILABLE;
343 + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
344 @property (nonatomic, strong) id <BleNeedSendDataDelegate_C> _Nullable bleSendDataDelegate;
346 @property (nonatomic, strong) id <IotStateDelatege_C> _Nullable iotStateDelegate;
347 @property (nonatomic, copy) NSString * _Nullable appVersion;
349 /// \param data 二进制数据
351 - (void)bleDataReceivedWithData:(NSData * _Nonnull)data;
353 - (void)checkFgsStateWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
355 - (void)startConnectLpStateWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
357 - (void)disConnectWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
359 - (void)uploadFileWithFileName:(NSString * _Nonnull)fileName content:(NSData * _Nonnull)content;
365 SWIFT_PROTOCOL("_TtP16AliIotConnectKit25BleNeedSendDataDelegate_C_")
366 @protocol BleNeedSendDataDelegate_C
367 - (void)sendBleDataWithData:(NSData * _Nonnull)data;
384 SWIFT_PROTOCOL("_TtP16AliIotConnectKit18IotStateDelatege_C_")
385 @protocol IotStateDelatege_C
386 - (void)onIotConnected;
387 - (void)onIotConnectFailed;
388 - (void)onIotDisconeted;
389 - (void)onIotConnecting;
390 - (void)onLogWithLog:(NSString * _Nonnull)log;
399 #if __has_attribute(external_source_symbol)
400 # pragma clang attribute pop
402 #if defined(__cplusplus)
404 #pragma clang diagnostic pop
407 #elif defined(__x86_64__) && __x86_64__
408 // Generated by Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
409 #ifndef ALIIOTCONNECTKIT_SWIFT_H
410 #define ALIIOTCONNECTKIT_SWIFT_H
411 #pragma clang diagnostic push
412 #pragma clang diagnostic ignored "-Wgcc-compat"
414 #if !defined(__has_include)
415 # define __has_include(x) 0
417 #if !defined(__has_attribute)
418 # define __has_attribute(x) 0
420 #if !defined(__has_feature)
421 # define __has_feature(x) 0
423 #if !defined(__has_warning)
424 # define __has_warning(x) 0
427 #if __has_include(<swift/objc-prologue.h>)
428 # include <swift/objc-prologue.h>
431 #pragma clang diagnostic ignored "-Wauto-import"
432 #if defined(__OBJC__)
433 #include <Foundation/Foundation.h>
435 #if defined(__cplusplus)
442 #include <type_traits>
449 #if defined(__cplusplus)
450 #if defined(__arm64e__) && __has_include(<ptrauth.h>)
451 # include <ptrauth.h>
453 #pragma clang diagnostic push
454 #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
455 # ifndef __ptrauth_swift_value_witness_function_pointer
456 # define __ptrauth_swift_value_witness_function_pointer(x)
458 # ifndef __ptrauth_swift_class_method_pointer
459 # define __ptrauth_swift_class_method_pointer(x)
461 #pragma clang diagnostic pop
465 #if !defined(SWIFT_TYPEDEFS)
466 # define SWIFT_TYPEDEFS 1
467 # if __has_include(<uchar.h>)
469 # elif !defined(__cplusplus)
470 typedef uint_least16_t char16_t;
471 typedef uint_least32_t char32_t;
473 typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
474 typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
475 typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
476 typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
477 typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
478 typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
479 typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
480 typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
481 typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
482 typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
483 typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
484 typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
487 #if !defined(SWIFT_PASTE)
488 # define SWIFT_PASTE_HELPER(x, y) x##y
489 # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
491 #if !defined(SWIFT_METATYPE)
492 # define SWIFT_METATYPE(X) Class
494 #if !defined(SWIFT_CLASS_PROPERTY)
495 # if __has_feature(objc_class_property)
496 # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
498 # define SWIFT_CLASS_PROPERTY(...)
501 #if !defined(SWIFT_RUNTIME_NAME)
502 # if __has_attribute(objc_runtime_name)
503 # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
505 # define SWIFT_RUNTIME_NAME(X)
508 #if !defined(SWIFT_COMPILE_NAME)
509 # if __has_attribute(swift_name)
510 # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
512 # define SWIFT_COMPILE_NAME(X)
515 #if !defined(SWIFT_METHOD_FAMILY)
516 # if __has_attribute(objc_method_family)
517 # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
519 # define SWIFT_METHOD_FAMILY(X)
522 #if !defined(SWIFT_NOESCAPE)
523 # if __has_attribute(noescape)
524 # define SWIFT_NOESCAPE __attribute__((noescape))
526 # define SWIFT_NOESCAPE
529 #if !defined(SWIFT_RELEASES_ARGUMENT)
530 # if __has_attribute(ns_consumed)
531 # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
533 # define SWIFT_RELEASES_ARGUMENT
536 #if !defined(SWIFT_WARN_UNUSED_RESULT)
537 # if __has_attribute(warn_unused_result)
538 # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
540 # define SWIFT_WARN_UNUSED_RESULT
543 #if !defined(SWIFT_NORETURN)
544 # if __has_attribute(noreturn)
545 # define SWIFT_NORETURN __attribute__((noreturn))
547 # define SWIFT_NORETURN
550 #if !defined(SWIFT_CLASS_EXTRA)
551 # define SWIFT_CLASS_EXTRA
553 #if !defined(SWIFT_PROTOCOL_EXTRA)
554 # define SWIFT_PROTOCOL_EXTRA
556 #if !defined(SWIFT_ENUM_EXTRA)
557 # define SWIFT_ENUM_EXTRA
559 #if !defined(SWIFT_CLASS)
560 # if __has_attribute(objc_subclassing_restricted)
561 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
562 # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
564 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
565 # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
568 #if !defined(SWIFT_RESILIENT_CLASS)
569 # if __has_attribute(objc_class_stub)
570 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
571 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
573 # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
574 # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
577 #if !defined(SWIFT_PROTOCOL)
578 # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
579 # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
581 #if !defined(SWIFT_EXTENSION)
582 # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
584 #if !defined(OBJC_DESIGNATED_INITIALIZER)
585 # if __has_attribute(objc_designated_initializer)
586 # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
588 # define OBJC_DESIGNATED_INITIALIZER
591 #if !defined(SWIFT_ENUM_ATTR)
592 # if __has_attribute(enum_extensibility)
593 # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
595 # define SWIFT_ENUM_ATTR(_extensibility)
598 #if !defined(SWIFT_ENUM)
599 # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
600 # if __has_feature(generalized_swift_name)
601 # 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
603 # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
606 #if !defined(SWIFT_UNAVAILABLE)
607 # define SWIFT_UNAVAILABLE __attribute__((unavailable))
609 #if !defined(SWIFT_UNAVAILABLE_MSG)
610 # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
612 #if !defined(SWIFT_AVAILABILITY)
613 # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
615 #if !defined(SWIFT_WEAK_IMPORT)
616 # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
618 #if !defined(SWIFT_DEPRECATED)
619 # define SWIFT_DEPRECATED __attribute__((deprecated))
621 #if !defined(SWIFT_DEPRECATED_MSG)
622 # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
624 #if !defined(SWIFT_DEPRECATED_OBJC)
625 # if __has_feature(attribute_diagnose_if_objc)
626 # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
628 # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
631 #if defined(__OBJC__)
632 #if !defined(IBSegueAction)
633 # define IBSegueAction
636 #if !defined(SWIFT_EXTERN)
637 # if defined(__cplusplus)
638 # define SWIFT_EXTERN extern "C"
640 # define SWIFT_EXTERN extern
643 #if !defined(SWIFT_CALL)
644 # define SWIFT_CALL __attribute__((swiftcall))
646 #if !defined(SWIFT_INDIRECT_RESULT)
647 # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
649 #if !defined(SWIFT_CONTEXT)
650 # define SWIFT_CONTEXT __attribute__((swift_context))
652 #if !defined(SWIFT_ERROR_RESULT)
653 # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
655 #if defined(__cplusplus)
656 # define SWIFT_NOEXCEPT noexcept
658 # define SWIFT_NOEXCEPT
660 #if !defined(SWIFT_C_INLINE_THUNK)
661 # if __has_attribute(always_inline)
662 # if __has_attribute(nodebug)
663 # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
665 # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
668 # define SWIFT_C_INLINE_THUNK inline
672 #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
673 # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
676 #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
677 # define SWIFT_IMPORT_STDLIB_SYMBOL
680 #if defined(__OBJC__)
681 #if __has_feature(objc_modules)
682 #if __has_warning("-Watimport-in-framework-header")
683 #pragma clang diagnostic ignored "-Watimport-in-framework-header"
690 #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
691 #pragma clang diagnostic ignored "-Wduplicate-method-arg"
692 #if __has_warning("-Wpragma-clang-attribute")
693 # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
695 #pragma clang diagnostic ignored "-Wunknown-pragmas"
696 #pragma clang diagnostic ignored "-Wnullability"
697 #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
699 #if __has_attribute(external_source_symbol)
700 # pragma push_macro("any")
702 # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="AliIotConnectKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
703 # pragma pop_macro("any")
706 #if defined(__OBJC__)
708 SWIFT_CLASS("_TtC16AliIotConnectKit23AliCloudIotLogManager_C")
709 @interface AliCloudIotLogManager_C : NSObject
710 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AliCloudIotLogManager_C * _Nonnull shared;)
711 + (AliCloudIotLogManager_C * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
712 - (nonnull instancetype)init SWIFT_UNAVAILABLE;
713 + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
715 /// \param isOpen 是否开启日志,为TRUE时,打印日志
717 - (void)switchLogStatus:(BOOL)isOpen;
718 - (void)switchMQTTLogStatus:(BOOL)isOpen;
722 SWIFT_PROTOCOL("_TtP16AliIotConnectKit28AliCloudIotSdkInitDelegate_C_")
723 @protocol AliCloudIotSdkInitDelegate_C
724 /// SDK初始化结果,注意:成功不代表MQTT长连接通道建立成功
725 /// \param successed 是否初始化成功
727 /// \param error 初始化失败时的错误信息
729 - (void)onInitWithSuccessed:(BOOL)successed error:(NSError * _Nullable)error;
731 /// \param successed 是否注销初始化成功
733 /// \param error 失败时的错误信息
735 - (void)onDeinitWithSuccessed:(BOOL)successed error:(NSError * _Nullable)error;
738 @protocol BleNeedSendDataDelegate_C;
739 @protocol IotStateDelatege_C;
743 SWIFT_CLASS("_TtC16AliIotConnectKit20AliConnectMananger_C")
744 @interface AliConnectMananger_C : NSObject
745 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AliConnectMananger_C * _Nonnull shared;)
746 + (AliConnectMananger_C * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
747 - (nonnull instancetype)init SWIFT_UNAVAILABLE;
748 + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
749 @property (nonatomic, strong) id <BleNeedSendDataDelegate_C> _Nullable bleSendDataDelegate;
751 @property (nonatomic, strong) id <IotStateDelatege_C> _Nullable iotStateDelegate;
752 @property (nonatomic, copy) NSString * _Nullable appVersion;
754 /// \param data 二进制数据
756 - (void)bleDataReceivedWithData:(NSData * _Nonnull)data;
758 - (void)checkFgsStateWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
760 - (void)startConnectLpStateWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
762 - (void)disConnectWithResult:(void (^ _Nonnull)(BOOL, NSDictionary<NSString *, id> * _Nonnull))result;
764 - (void)uploadFileWithFileName:(NSString * _Nonnull)fileName content:(NSData * _Nonnull)content;
770 SWIFT_PROTOCOL("_TtP16AliIotConnectKit25BleNeedSendDataDelegate_C_")
771 @protocol BleNeedSendDataDelegate_C
772 - (void)sendBleDataWithData:(NSData * _Nonnull)data;
789 SWIFT_PROTOCOL("_TtP16AliIotConnectKit18IotStateDelatege_C_")
790 @protocol IotStateDelatege_C
791 - (void)onIotConnected;
792 - (void)onIotConnectFailed;
793 - (void)onIotDisconeted;
794 - (void)onIotConnecting;
795 - (void)onLogWithLog:(NSString * _Nonnull)log;
804 #if __has_attribute(external_source_symbol)
805 # pragma clang attribute pop
807 #if defined(__cplusplus)
809 #pragma clang diagnostic pop
813 #error unsupported Swift architecture