use crate::common::*;
use crate::Foundation::*;
use crate::MetricKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
pub struct MXCrashDiagnostic;
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl ClassType for MXCrashDiagnostic {
#[inherits(NSObject)]
type Super = MXDiagnostic;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl NSCoding for MXCrashDiagnostic {}
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl NSObjectProtocol for MXCrashDiagnostic {}
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl NSSecureCoding for MXCrashDiagnostic {}
extern_methods!(
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl MXCrashDiagnostic {
#[cfg(feature = "MetricKit_MXCallStackTree")]
#[method_id(@__retain_semantics Other callStackTree)]
pub unsafe fn callStackTree(&self) -> Id<MXCallStackTree>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other terminationReason)]
pub unsafe fn terminationReason(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other virtualMemoryRegionInfo)]
pub unsafe fn virtualMemoryRegionInfo(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSNumber")]
#[method_id(@__retain_semantics Other exceptionType)]
pub unsafe fn exceptionType(&self) -> Option<Id<NSNumber>>;
#[cfg(feature = "Foundation_NSNumber")]
#[method_id(@__retain_semantics Other exceptionCode)]
pub unsafe fn exceptionCode(&self) -> Option<Id<NSNumber>>;
#[cfg(feature = "Foundation_NSNumber")]
#[method_id(@__retain_semantics Other signal)]
pub unsafe fn signal(&self) -> Option<Id<NSNumber>>;
#[cfg(feature = "MetricKit_MXCrashDiagnosticObjectiveCExceptionReason")]
#[method_id(@__retain_semantics Other exceptionReason)]
pub unsafe fn exceptionReason(
&self,
) -> Option<Id<MXCrashDiagnosticObjectiveCExceptionReason>>;
}
);
extern_methods!(
#[cfg(feature = "MetricKit_MXCrashDiagnostic")]
unsafe impl MXCrashDiagnostic {
#[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>;
}
);