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 HKAttachment;
);
unsafe impl Send for HKAttachment {}
unsafe impl Sync for HKAttachment {}
extern_conformance!(
unsafe impl NSCoding for HKAttachment {}
);
extern_conformance!(
unsafe impl NSCopying for HKAttachment {}
);
unsafe impl CopyingHelper for HKAttachment {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for HKAttachment {}
);
extern_conformance!(
unsafe impl NSSecureCoding for HKAttachment {}
);
impl HKAttachment {
extern_methods!(
#[unsafe(method(identifier))]
#[unsafe(method_family = none)]
pub unsafe fn identifier(&self) -> Retained<NSUUID>;
#[unsafe(method(name))]
#[unsafe(method_family = none)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[cfg(feature = "objc2-uniform-type-identifiers")]
#[unsafe(method(contentType))]
#[unsafe(method_family = none)]
pub unsafe fn contentType(&self) -> Retained<UTType>;
#[unsafe(method(size))]
#[unsafe(method_family = none)]
pub unsafe fn size(&self) -> NSInteger;
#[unsafe(method(creationDate))]
#[unsafe(method_family = none)]
pub unsafe fn creationDate(&self) -> Retained<NSDate>;
#[unsafe(method(metadata))]
#[unsafe(method_family = none)]
pub unsafe fn metadata(&self) -> Option<Retained<NSDictionary<NSString, AnyObject>>>;
#[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>;
);
}