use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-media")]
use objc2_core_media::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNDecision;
);
unsafe impl Send for CNDecision {}
unsafe impl Sync for CNDecision {}
extern_conformance!(
unsafe impl NSCopying for CNDecision {}
);
unsafe impl CopyingHelper for CNDecision {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for CNDecision {}
);
impl CNDecision {
extern_methods!(
#[cfg(all(feature = "CNDetection", feature = "objc2-core-media"))]
#[unsafe(method(initWithTime:detectionID:strong:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTime_detectionID_strong(
this: Allocated<Self>,
time: CMTime,
detection_id: CNDetectionID,
is_strong: bool,
) -> Retained<Self>;
#[cfg(all(feature = "CNDetection", feature = "objc2-core-media"))]
#[unsafe(method(initWithTime:detectionGroupID:strong:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTime_detectionGroupID_strong(
this: Allocated<Self>,
time: CMTime,
detection_group_id: CNDetectionGroupID,
is_strong: bool,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-media")]
#[unsafe(method(time))]
#[unsafe(method_family = none)]
pub unsafe fn time(&self) -> CMTime;
#[cfg(feature = "CNDetection")]
#[unsafe(method(detectionID))]
#[unsafe(method_family = none)]
pub unsafe fn detectionID(&self) -> CNDetectionID;
#[cfg(feature = "CNDetection")]
#[unsafe(method(detectionGroupID))]
#[unsafe(method_family = none)]
pub unsafe fn detectionGroupID(&self) -> CNDetectionGroupID;
#[unsafe(method(isUserDecision))]
#[unsafe(method_family = none)]
pub unsafe fn isUserDecision(&self) -> bool;
#[unsafe(method(isGroupDecision))]
#[unsafe(method_family = none)]
pub unsafe fn isGroupDecision(&self) -> bool;
#[unsafe(method(isStrongDecision))]
#[unsafe(method_family = none)]
pub unsafe fn isStrongDecision(&self) -> bool;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}