3DiVi Face SDK  3.24.0
 Указатель Классы Пространства имен Файлы Функции Переменные Определения типов Перечисления Элементы перечислений Свойства Группы
swift_callback.h
1 #ifndef swift_callback_h
2 #define swift_callback_h
3 
5 
6 #if __has_attribute(swift_name)
7 # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
8 #else
9 # define SWIFT_COMPILE_NAME(X)
10 #endif
11 
12 #if __has_attribute(objc_method_family)
13 # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
14 #else
15 # define SWIFT_METHOD_FAMILY(X)
16 #endif
17 
18 #if !defined(SWIFT_CLASS_EXTRA)
19 # define SWIFT_CLASS_EXTRA
20 #endif
21 
22 #if !defined(SWIFT_CLASS)
23 # if __has_attribute(objc_subclassing_restricted)
24 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
25 # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
26 # else
27 # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
28 # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
29 # endif
30 #endif
31 
32 #if !defined(OBJC_DESIGNATED_INITIALIZER)
33 # if __has_attribute(objc_designated_initializer)
34 # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
35 # else
36 # define OBJC_DESIGNATED_INITIALIZER
37 # endif
38 #endif
39 
40 #if !defined(SWIFT_UNAVAILABLE)
41 # define SWIFT_UNAVAILABLE __attribute__((unavailable))
42 #endif
43 #if !defined(SWIFT_UNAVAILABLE_MSG)
44 # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
45 #endif
46 
47 #if __has_attribute(external_source_symbol)
48 # pragma push_macro("any")
49 # undef any
50 
51 # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="demo",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
52 
53 # pragma pop_macro("any")
54 #endif
55 
56 
59 
60 SWIFT_CLASS_NAMED("CallbackHandler")
61 @interface CallbackHandler : NSObject
62 - (nonnull instancetype)initWithUserdata:(void const * _Nonnull)userdata OBJC_DESIGNATED_INITIALIZER;
63 - (void)trakingCallbackWithData:(TrackingCallbackData * _Nonnull)data;
64 - (void)matchFoundCallbackWithData:(MatchFoundCallbackData * _Nonnull)data;
65 - (nonnull instancetype)init SWIFT_UNAVAILABLE;
66 + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
67 @end
68 
69 #if __has_attribute(external_source_symbol)
70 # pragma clang attribute pop
71 #endif
72 
73 #endif /* swift_callback_h */
Definition: CallbackData.h:106
Definition: CallbackData.h:150