icrate/generated/HealthKit/
HKActivitySummary.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_HKActivitySummary")]
12 pub struct HKActivitySummary;
13
14 #[cfg(feature = "HealthKit_HKActivitySummary")]
15 unsafe impl ClassType for HKActivitySummary {
16 type Super = NSObject;
17 type Mutability = InteriorMutable;
18 }
19);
20
21#[cfg(feature = "HealthKit_HKActivitySummary")]
22unsafe impl NSCoding for HKActivitySummary {}
23
24#[cfg(feature = "HealthKit_HKActivitySummary")]
25unsafe impl NSCopying for HKActivitySummary {}
26
27#[cfg(feature = "HealthKit_HKActivitySummary")]
28unsafe impl NSObjectProtocol for HKActivitySummary {}
29
30#[cfg(feature = "HealthKit_HKActivitySummary")]
31unsafe impl NSSecureCoding for HKActivitySummary {}
32
33extern_methods!(
34 #[cfg(feature = "HealthKit_HKActivitySummary")]
35 unsafe impl HKActivitySummary {
36 #[cfg(all(
37 feature = "Foundation_NSCalendar",
38 feature = "Foundation_NSDateComponents"
39 ))]
40 #[method_id(@__retain_semantics Other dateComponentsForCalendar:)]
41 pub unsafe fn dateComponentsForCalendar(
42 &self,
43 calendar: &NSCalendar,
44 ) -> Id<NSDateComponents>;
45
46 #[method(activityMoveMode)]
47 pub unsafe fn activityMoveMode(&self) -> HKActivityMoveMode;
48
49 #[method(setActivityMoveMode:)]
50 pub unsafe fn setActivityMoveMode(&self, activity_move_mode: HKActivityMoveMode);
51
52 #[cfg(feature = "HealthKit_HKQuantity")]
53 #[method_id(@__retain_semantics Other activeEnergyBurned)]
54 pub unsafe fn activeEnergyBurned(&self) -> Id<HKQuantity>;
55
56 #[cfg(feature = "HealthKit_HKQuantity")]
57 #[method(setActiveEnergyBurned:)]
58 pub unsafe fn setActiveEnergyBurned(&self, active_energy_burned: &HKQuantity);
59
60 #[cfg(feature = "HealthKit_HKQuantity")]
61 #[method_id(@__retain_semantics Other appleMoveTime)]
62 pub unsafe fn appleMoveTime(&self) -> Id<HKQuantity>;
63
64 #[cfg(feature = "HealthKit_HKQuantity")]
65 #[method(setAppleMoveTime:)]
66 pub unsafe fn setAppleMoveTime(&self, apple_move_time: &HKQuantity);
67
68 #[cfg(feature = "HealthKit_HKQuantity")]
69 #[method_id(@__retain_semantics Other appleExerciseTime)]
70 pub unsafe fn appleExerciseTime(&self) -> Id<HKQuantity>;
71
72 #[cfg(feature = "HealthKit_HKQuantity")]
73 #[method(setAppleExerciseTime:)]
74 pub unsafe fn setAppleExerciseTime(&self, apple_exercise_time: &HKQuantity);
75
76 #[cfg(feature = "HealthKit_HKQuantity")]
77 #[method_id(@__retain_semantics Other appleStandHours)]
78 pub unsafe fn appleStandHours(&self) -> Id<HKQuantity>;
79
80 #[cfg(feature = "HealthKit_HKQuantity")]
81 #[method(setAppleStandHours:)]
82 pub unsafe fn setAppleStandHours(&self, apple_stand_hours: &HKQuantity);
83
84 #[cfg(feature = "HealthKit_HKQuantity")]
85 #[method_id(@__retain_semantics Other activeEnergyBurnedGoal)]
86 pub unsafe fn activeEnergyBurnedGoal(&self) -> Id<HKQuantity>;
87
88 #[cfg(feature = "HealthKit_HKQuantity")]
89 #[method(setActiveEnergyBurnedGoal:)]
90 pub unsafe fn setActiveEnergyBurnedGoal(&self, active_energy_burned_goal: &HKQuantity);
91
92 #[cfg(feature = "HealthKit_HKQuantity")]
93 #[method_id(@__retain_semantics Other appleMoveTimeGoal)]
94 pub unsafe fn appleMoveTimeGoal(&self) -> Id<HKQuantity>;
95
96 #[cfg(feature = "HealthKit_HKQuantity")]
97 #[method(setAppleMoveTimeGoal:)]
98 pub unsafe fn setAppleMoveTimeGoal(&self, apple_move_time_goal: &HKQuantity);
99
100 #[cfg(feature = "HealthKit_HKQuantity")]
101 #[deprecated]
102 #[method_id(@__retain_semantics Other appleExerciseTimeGoal)]
103 pub unsafe fn appleExerciseTimeGoal(&self) -> Id<HKQuantity>;
104
105 #[cfg(feature = "HealthKit_HKQuantity")]
106 #[deprecated]
107 #[method(setAppleExerciseTimeGoal:)]
108 pub unsafe fn setAppleExerciseTimeGoal(&self, apple_exercise_time_goal: &HKQuantity);
109
110 #[cfg(feature = "HealthKit_HKQuantity")]
111 #[method_id(@__retain_semantics Other exerciseTimeGoal)]
112 pub unsafe fn exerciseTimeGoal(&self) -> Option<Id<HKQuantity>>;
113
114 #[cfg(feature = "HealthKit_HKQuantity")]
115 #[method(setExerciseTimeGoal:)]
116 pub unsafe fn setExerciseTimeGoal(&self, exercise_time_goal: Option<&HKQuantity>);
117
118 #[cfg(feature = "HealthKit_HKQuantity")]
119 #[deprecated]
120 #[method_id(@__retain_semantics Other appleStandHoursGoal)]
121 pub unsafe fn appleStandHoursGoal(&self) -> Id<HKQuantity>;
122
123 #[cfg(feature = "HealthKit_HKQuantity")]
124 #[deprecated]
125 #[method(setAppleStandHoursGoal:)]
126 pub unsafe fn setAppleStandHoursGoal(&self, apple_stand_hours_goal: &HKQuantity);
127
128 #[cfg(feature = "HealthKit_HKQuantity")]
129 #[method_id(@__retain_semantics Other standHoursGoal)]
130 pub unsafe fn standHoursGoal(&self) -> Option<Id<HKQuantity>>;
131
132 #[cfg(feature = "HealthKit_HKQuantity")]
133 #[method(setStandHoursGoal:)]
134 pub unsafe fn setStandHoursGoal(&self, stand_hours_goal: Option<&HKQuantity>);
135 }
136);
137
138extern_methods!(
139 #[cfg(feature = "HealthKit_HKActivitySummary")]
141 unsafe impl HKActivitySummary {
142 #[method_id(@__retain_semantics Init init)]
143 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
144
145 #[method_id(@__retain_semantics New new)]
146 pub unsafe fn new() -> Id<Self>;
147 }
148);
149
150extern_static!(HKPredicateKeyPathDateComponents: &'static NSString);