Source code

Revision control

Copy as Markdown

Other Tools

//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_TYPED_ENUM
pub type NSDeviceCertification = NSInteger;
extern "C" {
pub static NSDeviceCertificationiPhonePerformanceGaming: NSDeviceCertification;
}
// NS_TYPED_ENUM
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 {}
}
/// Category "NSDeviceCertification" on [`NSProcessInfo`].
#[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 {}