1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct MXMetricPayload;

    unsafe impl ClassType for MXMetricPayload {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

unsafe impl NSCoding for MXMetricPayload {}

unsafe impl NSObjectProtocol for MXMetricPayload {}

unsafe impl NSSecureCoding for MXMetricPayload {}

extern_methods!(
    unsafe impl MXMetricPayload {
        #[method_id(@__retain_semantics Other latestApplicationVersion)]
        pub unsafe fn latestApplicationVersion(&self) -> Id<NSString>;

        #[method(includesMultipleApplicationVersions)]
        pub unsafe fn includesMultipleApplicationVersions(&self) -> bool;

        #[method_id(@__retain_semantics Other timeStampBegin)]
        pub unsafe fn timeStampBegin(&self) -> Id<NSDate>;

        #[method_id(@__retain_semantics Other timeStampEnd)]
        pub unsafe fn timeStampEnd(&self) -> Id<NSDate>;

        #[cfg(all(feature = "MXCPUMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other cpuMetrics)]
        pub unsafe fn cpuMetrics(&self) -> Option<Id<MXCPUMetric>>;

        #[cfg(all(feature = "MXGPUMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other gpuMetrics)]
        pub unsafe fn gpuMetrics(&self) -> Option<Id<MXGPUMetric>>;

        #[cfg(all(feature = "MXCellularConditionMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other cellularConditionMetrics)]
        pub unsafe fn cellularConditionMetrics(&self) -> Option<Id<MXCellularConditionMetric>>;

        #[cfg(all(feature = "MXAppRunTimeMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other applicationTimeMetrics)]
        pub unsafe fn applicationTimeMetrics(&self) -> Option<Id<MXAppRunTimeMetric>>;

        #[cfg(all(feature = "MXLocationActivityMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other locationActivityMetrics)]
        pub unsafe fn locationActivityMetrics(&self) -> Option<Id<MXLocationActivityMetric>>;

        #[cfg(all(feature = "MXMetric", feature = "MXNetworkTransferMetric"))]
        #[method_id(@__retain_semantics Other networkTransferMetrics)]
        pub unsafe fn networkTransferMetrics(&self) -> Option<Id<MXNetworkTransferMetric>>;

        #[cfg(all(feature = "MXAppLaunchMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other applicationLaunchMetrics)]
        pub unsafe fn applicationLaunchMetrics(&self) -> Option<Id<MXAppLaunchMetric>>;

        #[cfg(all(feature = "MXAppResponsivenessMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other applicationResponsivenessMetrics)]
        pub unsafe fn applicationResponsivenessMetrics(
            &self,
        ) -> Option<Id<MXAppResponsivenessMetric>>;

        #[cfg(all(feature = "MXDiskIOMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other diskIOMetrics)]
        pub unsafe fn diskIOMetrics(&self) -> Option<Id<MXDiskIOMetric>>;

        #[cfg(all(feature = "MXMemoryMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other memoryMetrics)]
        pub unsafe fn memoryMetrics(&self) -> Option<Id<MXMemoryMetric>>;

        #[cfg(all(feature = "MXDisplayMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other displayMetrics)]
        pub unsafe fn displayMetrics(&self) -> Option<Id<MXDisplayMetric>>;

        #[cfg(all(feature = "MXAnimationMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other animationMetrics)]
        pub unsafe fn animationMetrics(&self) -> Option<Id<MXAnimationMetric>>;

        #[cfg(all(feature = "MXAppExitMetric", feature = "MXMetric"))]
        #[method_id(@__retain_semantics Other applicationExitMetrics)]
        pub unsafe fn applicationExitMetrics(&self) -> Option<Id<MXAppExitMetric>>;

        #[cfg(all(feature = "MXMetric", feature = "MXSignpostMetric"))]
        #[method_id(@__retain_semantics Other signpostMetrics)]
        pub unsafe fn signpostMetrics(&self) -> Option<Id<NSArray<MXSignpostMetric>>>;

        #[cfg(feature = "MXMetaData")]
        #[method_id(@__retain_semantics Other metaData)]
        pub unsafe fn metaData(&self) -> Option<Id<MXMetaData>>;

        #[method_id(@__retain_semantics Other JSONRepresentation)]
        pub unsafe fn JSONRepresentation(&self) -> Id<NSData>;

        #[deprecated]
        #[method_id(@__retain_semantics Other DictionaryRepresentation)]
        pub unsafe fn DictionaryRepresentation(&self) -> Id<NSDictionary>;

        #[method_id(@__retain_semantics Other dictionaryRepresentation)]
        pub unsafe fn dictionaryRepresentation(&self) -> Id<NSDictionary>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    unsafe impl MXMetricPayload {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);