use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
pub type NSDeviceCertification = NSInteger;
extern "C" {
pub static NSDeviceCertificationiPhonePerformanceGaming: NSDeviceCertification;
}
pub type NSProcessPerformanceProfile = NSInteger;
extern "C" {
pub static NSProcessPerformanceProfileDefault: NSProcessPerformanceProfile;
}
extern "C" {
pub static NSProcessPerformanceProfileSustained: NSProcessPerformanceProfile;
}
extern "C" {
pub static NSProcessInfoPerformanceProfileDidChangeNotification:
Option<&'static NSNotificationName>;
}
mod private_NSProcessInfoNSDeviceCertification {
pub trait Sealed {}
}
#[doc(alias = "NSDeviceCertification")]
pub unsafe trait NSProcessInfoNSDeviceCertification:
ClassType + Sized + private_NSProcessInfoNSDeviceCertification::Sealed
{
extern_methods!(
#[unsafe(method(isDeviceCertifiedFor:))]
#[unsafe(method_family = none)]
fn isDeviceCertifiedFor(&self, performance_tier: NSDeviceCertification) -> bool;
#[unsafe(method(hasPerformanceProfile:))]
#[unsafe(method_family = none)]
fn hasPerformanceProfile(&self, performance_profile: NSProcessPerformanceProfile) -> bool;
);
}
impl private_NSProcessInfoNSDeviceCertification::Sealed for NSProcessInfo {}
unsafe impl NSProcessInfoNSDeviceCertification for NSProcessInfo {}