//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Foundation::*;
use crate::MetricKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MetricKit_MXMemoryMetric")]
    pub struct MXMemoryMetric;

    #[cfg(feature = "MetricKit_MXMemoryMetric")]
    unsafe impl ClassType for MXMemoryMetric {
        #[inherits(NSObject)]
        type Super = MXMetric;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MetricKit_MXMemoryMetric")]
unsafe impl NSCoding for MXMemoryMetric {}

#[cfg(feature = "MetricKit_MXMemoryMetric")]
unsafe impl NSObjectProtocol for MXMemoryMetric {}

#[cfg(feature = "MetricKit_MXMemoryMetric")]
unsafe impl NSSecureCoding for MXMemoryMetric {}

extern_methods!(
    #[cfg(feature = "MetricKit_MXMemoryMetric")]
    unsafe impl MXMemoryMetric {
        #[cfg(all(
            feature = "Foundation_NSMeasurement",
            feature = "Foundation_NSUnitInformationStorage"
        ))]
        #[method_id(@__retain_semantics Other peakMemoryUsage)]
        pub unsafe fn peakMemoryUsage(&self) -> Id<NSMeasurement<NSUnitInformationStorage>>;

        #[cfg(all(
            feature = "Foundation_NSUnitInformationStorage",
            feature = "MetricKit_MXAverage"
        ))]
        #[method_id(@__retain_semantics Other averageSuspendedMemory)]
        pub unsafe fn averageSuspendedMemory(&self) -> Id<MXAverage<NSUnitInformationStorage>>;
    }
);

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

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