use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-uniform-type-identifiers")]
use objc2_uniform_type_identifiers::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PHContentEditingOutput;
);
extern_conformance!(
unsafe impl NSObjectProtocol for PHContentEditingOutput {}
);
impl PHContentEditingOutput {
extern_methods!(
#[cfg(feature = "PHContentEditingInput")]
#[unsafe(method(initWithContentEditingInput:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithContentEditingInput(
this: Allocated<Self>,
content_editing_input: &PHContentEditingInput,
) -> Retained<Self>;
#[cfg(feature = "PHAdjustmentData")]
#[unsafe(method(adjustmentData))]
#[unsafe(method_family = none)]
pub unsafe fn adjustmentData(&self) -> Option<Retained<PHAdjustmentData>>;
#[cfg(feature = "PHAdjustmentData")]
#[unsafe(method(setAdjustmentData:))]
#[unsafe(method_family = none)]
pub unsafe fn setAdjustmentData(&self, adjustment_data: Option<&PHAdjustmentData>);
#[unsafe(method(renderedContentURL))]
#[unsafe(method_family = none)]
pub unsafe fn renderedContentURL(&self) -> Retained<NSURL>;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[unsafe(method(defaultRenderedContentType))]
#[unsafe(method_family = none)]
pub unsafe fn defaultRenderedContentType(&self) -> Option<Retained<UTType>>;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[unsafe(method(supportedRenderedContentTypes))]
#[unsafe(method_family = none)]
pub unsafe fn supportedRenderedContentTypes(&self) -> Retained<NSArray<UTType>>;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[unsafe(method(renderedContentURLForType:error:_))]
#[unsafe(method_family = none)]
pub unsafe fn renderedContentURLForType_error(
&self,
r#type: &UTType,
) -> Result<Retained<NSURL>, Retained<NSError>>;
);
}
impl PHContentEditingOutput {
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>;
);
}