icrate/generated/HealthKit/
HKObject.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_HKObject")]
12 pub struct HKObject;
13
14 #[cfg(feature = "HealthKit_HKObject")]
15 unsafe impl ClassType for HKObject {
16 type Super = NSObject;
17 type Mutability = InteriorMutable;
18 }
19);
20
21#[cfg(feature = "HealthKit_HKObject")]
22unsafe impl NSCoding for HKObject {}
23
24#[cfg(feature = "HealthKit_HKObject")]
25unsafe impl NSObjectProtocol for HKObject {}
26
27#[cfg(feature = "HealthKit_HKObject")]
28unsafe impl NSSecureCoding for HKObject {}
29
30extern_methods!(
31 #[cfg(feature = "HealthKit_HKObject")]
32 unsafe impl HKObject {
33 #[cfg(feature = "Foundation_NSUUID")]
34 #[method_id(@__retain_semantics Other UUID)]
35 pub unsafe fn UUID(&self) -> Id<NSUUID>;
36
37 #[cfg(feature = "HealthKit_HKSource")]
38 #[deprecated]
39 #[method_id(@__retain_semantics Other source)]
40 pub unsafe fn source(&self) -> Id<HKSource>;
41
42 #[cfg(feature = "HealthKit_HKSourceRevision")]
43 #[method_id(@__retain_semantics Other sourceRevision)]
44 pub unsafe fn sourceRevision(&self) -> Id<HKSourceRevision>;
45
46 #[cfg(feature = "HealthKit_HKDevice")]
47 #[method_id(@__retain_semantics Other device)]
48 pub unsafe fn device(&self) -> Option<Id<HKDevice>>;
49
50 #[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSString"))]
51 #[method_id(@__retain_semantics Other metadata)]
52 pub unsafe fn metadata(&self) -> Option<Id<NSDictionary<NSString, AnyObject>>>;
53
54 #[method_id(@__retain_semantics Init init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
56 }
57);
58
59extern_methods!(
60 #[cfg(feature = "HealthKit_HKObject")]
62 unsafe impl HKObject {
63 #[method_id(@__retain_semantics New new)]
64 pub unsafe fn new() -> Id<Self>;
65 }
66);
67
68extern_static!(HKPredicateKeyPathUUID: &'static NSString);
69
70extern_static!(HKPredicateKeyPathSource: &'static NSString);
71
72extern_static!(HKPredicateKeyPathMetadata: &'static NSString);
73
74extern_static!(HKPredicateKeyPathCorrelation: &'static NSString);
75
76extern_static!(HKPredicateKeyPathWorkout: &'static NSString);
77
78extern_static!(HKPredicateKeyPathDevice: &'static NSString);
79
80extern_static!(HKPredicateKeyPathSourceRevision: &'static NSString);