objc2_photos/generated/
PHProject.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(PHAssetCollection, PHCollection, PHObject, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(all(feature = "PHCollection", feature = "PHObject"))]
14 pub struct PHProject;
15);
16
17#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
18unsafe impl Send for PHProject {}
19
20#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
21unsafe impl Sync for PHProject {}
22
23#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
24extern_conformance!(
25 unsafe impl NSCopying for PHProject {}
26);
27
28#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
29unsafe impl CopyingHelper for PHProject {
30 type Result = Self;
31}
32
33#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for PHProject {}
36);
37
38#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
39impl PHProject {
40 extern_methods!(
41 #[unsafe(method(projectExtensionData))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn projectExtensionData(&self) -> Retained<NSData>;
49
50 #[unsafe(method(hasProjectPreview))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn hasProjectPreview(&self) -> bool;
61 );
62}
63
64#[cfg(all(feature = "PHCollection", feature = "PHObject"))]
66impl PHProject {
67 extern_methods!(
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}