objc2_metric_kit/generated/
MXMetaData.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct MXMetaData;
16);
17
18unsafe impl NSCoding for MXMetaData {}
19
20unsafe impl NSObjectProtocol for MXMetaData {}
21
22unsafe impl NSSecureCoding for MXMetaData {}
23
24impl MXMetaData {
25 extern_methods!(
26 #[unsafe(method(regionFormat))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn regionFormat(&self) -> Retained<NSString>;
30
31 #[unsafe(method(osVersion))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn osVersion(&self) -> Retained<NSString>;
35
36 #[unsafe(method(deviceType))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn deviceType(&self) -> Retained<NSString>;
40
41 #[unsafe(method(applicationBuildVersion))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn applicationBuildVersion(&self) -> Retained<NSString>;
45
46 #[unsafe(method(platformArchitecture))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn platformArchitecture(&self) -> Retained<NSString>;
50
51 #[unsafe(method(lowPowerModeEnabled))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn lowPowerModeEnabled(&self) -> bool;
55
56 #[unsafe(method(isTestFlightApp))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn isTestFlightApp(&self) -> bool;
60
61 #[cfg(feature = "libc")]
62 #[unsafe(method(pid))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn pid(&self) -> libc::pid_t;
68
69 #[unsafe(method(JSONRepresentation))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn JSONRepresentation(&self) -> Retained<NSData>;
75
76 #[deprecated]
80 #[unsafe(method(DictionaryRepresentation))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn DictionaryRepresentation(&self) -> Retained<NSDictionary>;
83
84 #[unsafe(method(dictionaryRepresentation))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn dictionaryRepresentation(&self) -> Retained<NSDictionary>;
90 );
91}
92
93impl MXMetaData {
95 extern_methods!(
96 #[unsafe(method(init))]
97 #[unsafe(method_family = init)]
98 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
99
100 #[unsafe(method(new))]
101 #[unsafe(method_family = new)]
102 pub unsafe fn new() -> Retained<Self>;
103 );
104}