objc2-image-capture-core 0.3.2

Bindings to the ImageCaptureCore framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// This class represents a folder on an ICCameraDevice object.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/imagecapturecore/iccamerafolder?language=objc)
    #[unsafe(super(ICCameraItem, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "ICCameraItem")]
    pub struct ICCameraFolder;
);

#[cfg(feature = "ICCameraItem")]
extern_conformance!(
    unsafe impl NSObjectProtocol for ICCameraFolder {}
);

#[cfg(feature = "ICCameraItem")]
impl ICCameraFolder {
    extern_methods!(
        /// A list of items contained by this folder.
        #[unsafe(method(contents))]
        #[unsafe(method_family = none)]
        pub unsafe fn contents(&self) -> Option<Retained<NSArray<ICCameraItem>>>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "ICCameraItem")]
impl ICCameraFolder {
    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>;
    );
}