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 unsafe fn acceptableTypeIdentifiers(&self) -> Retained<NSArray<NSString>>;
43
44 #[unsafe(method(setAcceptableTypeIdentifiers:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn setAcceptableTypeIdentifiers(
48 &self,
49 acceptable_type_identifiers: &NSArray<NSString>,
50 );
51
52 #[unsafe(method(init))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55
56 #[unsafe(method(initWithAcceptableTypeIdentifiers:))]
57 #[unsafe(method_family = init)]
58 pub unsafe fn initWithAcceptableTypeIdentifiers(
59 this: Allocated<Self>,
60 acceptable_type_identifiers: &NSArray<NSString>,
61 ) -> Retained<Self>;
62
63 #[unsafe(method(addAcceptableTypeIdentifiers:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn addAcceptableTypeIdentifiers(
66 &self,
67 acceptable_type_identifiers: &NSArray<NSString>,
68 );
69
70 #[unsafe(method(initWithTypeIdentifiersForAcceptingClass:))]
71 #[unsafe(method_family = init)]
72 pub unsafe fn initWithTypeIdentifiersForAcceptingClass(
73 this: Allocated<Self>,
74 a_class: &AnyClass,
75 ) -> Retained<Self>;
76
77 #[unsafe(method(addTypeIdentifiersForAcceptingClass:))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn addTypeIdentifiersForAcceptingClass(&self, a_class: &AnyClass);
80 );
81}
82
83impl UIPasteConfiguration {
85 extern_methods!(
86 #[unsafe(method(new))]
87 #[unsafe(method_family = new)]
88 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
89 );
90}