use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(PHAssetCollection, PHCollection, PHObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
pub struct PHProject;
);
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
unsafe impl Send for PHProject {}
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
unsafe impl Sync for PHProject {}
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
extern_conformance!(
unsafe impl NSCopying for PHProject {}
);
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
unsafe impl CopyingHelper for PHProject {
type Result = Self;
}
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
extern_conformance!(
unsafe impl NSObjectProtocol for PHProject {}
);
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
impl PHProject {
extern_methods!(
#[unsafe(method(projectExtensionData))]
#[unsafe(method_family = none)]
pub unsafe fn projectExtensionData(&self) -> Retained<NSData>;
#[unsafe(method(hasProjectPreview))]
#[unsafe(method_family = none)]
pub unsafe fn hasProjectPreview(&self) -> bool;
);
}
#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
impl PHProject {
extern_methods!(
#[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>;
);
}