use crate::common::*;
use crate::Foundation::*;
use crate::MetricKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
pub struct MXAppLaunchDiagnostic;
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl ClassType for MXAppLaunchDiagnostic {
#[inherits(NSObject)]
type Super = MXDiagnostic;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl NSCoding for MXAppLaunchDiagnostic {}
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl NSObjectProtocol for MXAppLaunchDiagnostic {}
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl NSSecureCoding for MXAppLaunchDiagnostic {}
extern_methods!(
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl MXAppLaunchDiagnostic {
#[cfg(feature = "MetricKit_MXCallStackTree")]
#[method_id(@__retain_semantics Other callStackTree)]
pub unsafe fn callStackTree(&self) -> Id<MXCallStackTree>;
#[cfg(all(
feature = "Foundation_NSMeasurement",
feature = "Foundation_NSUnitDuration"
))]
#[method_id(@__retain_semantics Other launchDuration)]
pub unsafe fn launchDuration(&self) -> Id<NSMeasurement<NSUnitDuration>>;
}
);
extern_methods!(
#[cfg(feature = "MetricKit_MXAppLaunchDiagnostic")]
unsafe impl MXAppLaunchDiagnostic {
#[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>;
}
);