objc2_ui_kit/generated/
UIPasteConfiguration.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct UIPasteConfiguration;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for UIPasteConfiguration {}
20);
21
22extern_conformance!(
23 unsafe impl NSCopying for UIPasteConfiguration {}
24);
25
26unsafe impl CopyingHelper for UIPasteConfiguration {
27 type Result = Self;
28}
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for UIPasteConfiguration {}
32);
33
34extern_conformance!(
35 unsafe impl NSSecureCoding for UIPasteConfiguration {}
36);
37
38impl UIPasteConfiguration {
39 extern_methods!(
40 #[unsafe(method(acceptableTypeIdentifiers))]
41 #[unsafe(method_family = none)]
42 pub fn acceptableTypeIdentifiers(&self) -> Retained<NSArray<NSString>>;
43
44 #[unsafe(method(setAcceptableTypeIdentifiers:))]
48 #[unsafe(method_family = none)]
49 pub fn setAcceptableTypeIdentifiers(&self, acceptable_type_identifiers: &NSArray<NSString>);
50
51 #[unsafe(method(init))]
52 #[unsafe(method_family = init)]
53 pub fn init(this: Allocated<Self>) -> Retained<Self>;
54
55 #[unsafe(method(initWithAcceptableTypeIdentifiers:))]
56 #[unsafe(method_family = init)]
57 pub fn initWithAcceptableTypeIdentifiers(
58 this: Allocated<Self>,
59 acceptable_type_identifiers: &NSArray<NSString>,
60 ) -> Retained<Self>;
61
62 #[unsafe(method(addAcceptableTypeIdentifiers:))]
63 #[unsafe(method_family = none)]
64 pub fn addAcceptableTypeIdentifiers(&self, acceptable_type_identifiers: &NSArray<NSString>);
65
66 #[unsafe(method(initWithTypeIdentifiersForAcceptingClass:))]
70 #[unsafe(method_family = init)]
71 pub unsafe fn initWithTypeIdentifiersForAcceptingClass(
72 this: Allocated<Self>,
73 a_class: &AnyClass,
74 ) -> Retained<Self>;
75
76 #[unsafe(method(addTypeIdentifiersForAcceptingClass:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn addTypeIdentifiersForAcceptingClass(&self, a_class: &AnyClass);
82 );
83}
84
85impl UIPasteConfiguration {
87 extern_methods!(
88 #[unsafe(method(new))]
89 #[unsafe(method_family = new)]
90 pub fn new(mtm: MainThreadMarker) -> Retained<Self>;
91 );
92}