use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[thread_kind = MainThreadOnly]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct UIPasteConfiguration;
);
extern_conformance!(
unsafe impl NSCoding for UIPasteConfiguration {}
);
extern_conformance!(
unsafe impl NSCopying for UIPasteConfiguration {}
);
unsafe impl CopyingHelper for UIPasteConfiguration {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for UIPasteConfiguration {}
);
extern_conformance!(
unsafe impl NSSecureCoding for UIPasteConfiguration {}
);
impl UIPasteConfiguration {
extern_methods!(
#[unsafe(method(acceptableTypeIdentifiers))]
#[unsafe(method_family = none)]
pub fn acceptableTypeIdentifiers(&self) -> Retained<NSArray<NSString>>;
#[unsafe(method(setAcceptableTypeIdentifiers:))]
#[unsafe(method_family = none)]
pub fn setAcceptableTypeIdentifiers(&self, acceptable_type_identifiers: &NSArray<NSString>);
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithAcceptableTypeIdentifiers:))]
#[unsafe(method_family = init)]
pub fn initWithAcceptableTypeIdentifiers(
this: Allocated<Self>,
acceptable_type_identifiers: &NSArray<NSString>,
) -> Retained<Self>;
#[unsafe(method(addAcceptableTypeIdentifiers:))]
#[unsafe(method_family = none)]
pub fn addAcceptableTypeIdentifiers(&self, acceptable_type_identifiers: &NSArray<NSString>);
#[unsafe(method(initWithTypeIdentifiersForAcceptingClass:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTypeIdentifiersForAcceptingClass(
this: Allocated<Self>,
a_class: &AnyClass,
) -> Retained<Self>;
#[unsafe(method(addTypeIdentifiersForAcceptingClass:))]
#[unsafe(method_family = none)]
pub unsafe fn addTypeIdentifiersForAcceptingClass(&self, a_class: &AnyClass);
);
}
impl UIPasteConfiguration {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}