use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
use objc2_app_kit::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PHContentEditingInput;
unsafe impl ClassType for PHContentEditingInput {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for PHContentEditingInput {}
extern_methods!(
unsafe impl PHContentEditingInput {
#[cfg(feature = "PhotosTypes")]
#[method(mediaType)]
pub unsafe fn mediaType(&self) -> PHAssetMediaType;
#[cfg(feature = "PhotosTypes")]
#[method(mediaSubtypes)]
pub unsafe fn mediaSubtypes(&self) -> PHAssetMediaSubtype;
#[method_id(@__retain_semantics Other creationDate)]
pub unsafe fn creationDate(&self) -> Option<Id<NSDate>>;
#[cfg(feature = "objc2-core-location")]
#[method_id(@__retain_semantics Other location)]
pub unsafe fn location(&self) -> Option<Id<CLLocation>>;
#[method_id(@__retain_semantics Other uniformTypeIdentifier)]
pub unsafe fn uniformTypeIdentifier(&self) -> Option<Id<NSString>>;
#[cfg(feature = "PhotosTypes")]
#[method(playbackStyle)]
pub unsafe fn playbackStyle(&self) -> PHAssetPlaybackStyle;
#[cfg(feature = "PHAdjustmentData")]
#[method_id(@__retain_semantics Other adjustmentData)]
pub unsafe fn adjustmentData(&self) -> Option<Id<PHAdjustmentData>>;
#[cfg(feature = "objc2-app-kit")]
#[method_id(@__retain_semantics Other displaySizeImage)]
pub unsafe fn displaySizeImage(&self) -> Option<Id<NSImage>>;
#[method_id(@__retain_semantics Other fullSizeImageURL)]
pub unsafe fn fullSizeImageURL(&self) -> Option<Id<NSURL>>;
#[method(fullSizeImageOrientation)]
pub unsafe fn fullSizeImageOrientation(&self) -> c_int;
#[cfg(feature = "PHLivePhoto")]
#[method_id(@__retain_semantics Other livePhoto)]
pub unsafe fn livePhoto(&self) -> Option<Id<PHLivePhoto>>;
}
);
extern_methods!(
unsafe impl PHContentEditingInput {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);