icrate/generated/HealthKit/
HKAnchoredObjectQuery.rs1use crate::common::*;
4use crate::CoreLocation::*;
5use crate::Foundation::*;
6use crate::HealthKit::*;
7use crate::UniformTypeIdentifiers::*;
8
9extern_class!(
10 #[derive(Debug, PartialEq, Eq, Hash)]
11 #[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
12 pub struct HKAnchoredObjectQuery;
13
14 #[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
15 unsafe impl ClassType for HKAnchoredObjectQuery {
16 #[inherits(NSObject)]
17 type Super = HKQuery;
18 type Mutability = InteriorMutable;
19 }
20);
21
22#[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
23unsafe impl NSObjectProtocol for HKAnchoredObjectQuery {}
24
25extern_methods!(
26 #[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
27 unsafe impl HKAnchoredObjectQuery {
28 #[cfg(all(
29 feature = "Foundation_NSArray",
30 feature = "Foundation_NSError",
31 feature = "HealthKit_HKDeletedObject",
32 feature = "HealthKit_HKQueryAnchor",
33 feature = "HealthKit_HKSample"
34 ))]
35 #[method(updateHandler)]
36 pub unsafe fn updateHandler(
37 &self,
38 ) -> *mut Block<
39 (
40 NonNull<HKAnchoredObjectQuery>,
41 *mut NSArray<HKSample>,
42 *mut NSArray<HKDeletedObject>,
43 *mut HKQueryAnchor,
44 *mut NSError,
45 ),
46 (),
47 >;
48
49 #[cfg(all(
50 feature = "Foundation_NSArray",
51 feature = "Foundation_NSError",
52 feature = "HealthKit_HKDeletedObject",
53 feature = "HealthKit_HKQueryAnchor",
54 feature = "HealthKit_HKSample"
55 ))]
56 #[method(setUpdateHandler:)]
57 pub unsafe fn setUpdateHandler(
58 &self,
59 update_handler: Option<
60 &Block<
61 (
62 NonNull<HKAnchoredObjectQuery>,
63 *mut NSArray<HKSample>,
64 *mut NSArray<HKDeletedObject>,
65 *mut HKQueryAnchor,
66 *mut NSError,
67 ),
68 (),
69 >,
70 >,
71 );
72
73 #[cfg(all(
74 feature = "Foundation_NSArray",
75 feature = "Foundation_NSError",
76 feature = "Foundation_NSPredicate",
77 feature = "HealthKit_HKDeletedObject",
78 feature = "HealthKit_HKQueryAnchor",
79 feature = "HealthKit_HKSample",
80 feature = "HealthKit_HKSampleType"
81 ))]
82 #[method_id(@__retain_semantics Init initWithType:predicate:anchor:limit:resultsHandler:)]
83 pub unsafe fn initWithType_predicate_anchor_limit_resultsHandler(
84 this: Allocated<Self>,
85 r#type: &HKSampleType,
86 predicate: Option<&NSPredicate>,
87 anchor: Option<&HKQueryAnchor>,
88 limit: NSUInteger,
89 handler: &Block<
90 (
91 NonNull<HKAnchoredObjectQuery>,
92 *mut NSArray<HKSample>,
93 *mut NSArray<HKDeletedObject>,
94 *mut HKQueryAnchor,
95 *mut NSError,
96 ),
97 (),
98 >,
99 ) -> Id<Self>;
100
101 #[cfg(all(
102 feature = "Foundation_NSArray",
103 feature = "Foundation_NSError",
104 feature = "Foundation_NSPredicate",
105 feature = "HealthKit_HKSample",
106 feature = "HealthKit_HKSampleType"
107 ))]
108 #[deprecated]
109 #[method_id(@__retain_semantics Init initWithType:predicate:anchor:limit:completionHandler:)]
110 pub unsafe fn initWithType_predicate_anchor_limit_completionHandler(
111 this: Allocated<Self>,
112 r#type: &HKSampleType,
113 predicate: Option<&NSPredicate>,
114 anchor: NSUInteger,
115 limit: NSUInteger,
116 handler: &Block<
117 (
118 NonNull<HKAnchoredObjectQuery>,
119 *mut NSArray<HKSample>,
120 NSUInteger,
121 *mut NSError,
122 ),
123 (),
124 >,
125 ) -> Id<Self>;
126
127 #[cfg(all(
128 feature = "Foundation_NSArray",
129 feature = "Foundation_NSError",
130 feature = "HealthKit_HKDeletedObject",
131 feature = "HealthKit_HKQueryAnchor",
132 feature = "HealthKit_HKQueryDescriptor",
133 feature = "HealthKit_HKSample"
134 ))]
135 #[method_id(@__retain_semantics Init initWithQueryDescriptors:anchor:limit:resultsHandler:)]
136 pub unsafe fn initWithQueryDescriptors_anchor_limit_resultsHandler(
137 this: Allocated<Self>,
138 query_descriptors: &NSArray<HKQueryDescriptor>,
139 anchor: Option<&HKQueryAnchor>,
140 limit: NSInteger,
141 handler: &Block<
142 (
143 NonNull<HKAnchoredObjectQuery>,
144 *mut NSArray<HKSample>,
145 *mut NSArray<HKDeletedObject>,
146 *mut HKQueryAnchor,
147 *mut NSError,
148 ),
149 (),
150 >,
151 ) -> Id<Self>;
152 }
153);
154
155extern_methods!(
156 #[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
158 unsafe impl HKAnchoredObjectQuery {
159 #[method_id(@__retain_semantics Init init)]
160 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
161 }
162);
163
164extern_methods!(
165 #[cfg(feature = "HealthKit_HKAnchoredObjectQuery")]
167 unsafe impl HKAnchoredObjectQuery {
168 #[method_id(@__retain_semantics New new)]
169 pub unsafe fn new() -> Id<Self>;
170 }
171);