objc2_ui_kit/generated/
UIPasteConfiguration.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uipasteconfiguration?language=objc)
12    #[unsafe(super(NSObject))]
13    #[thread_kind = MainThreadOnly]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct UIPasteConfiguration;
16);
17
18unsafe impl NSCoding for UIPasteConfiguration {}
19
20unsafe impl NSCopying for UIPasteConfiguration {}
21
22unsafe impl CopyingHelper for UIPasteConfiguration {
23    type Result = Self;
24}
25
26unsafe impl NSObjectProtocol for UIPasteConfiguration {}
27
28unsafe impl NSSecureCoding for UIPasteConfiguration {}
29
30impl UIPasteConfiguration {
31    extern_methods!(
32        #[unsafe(method(acceptableTypeIdentifiers))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn acceptableTypeIdentifiers(&self) -> Retained<NSArray<NSString>>;
35
36        /// Setter for [`acceptableTypeIdentifiers`][Self::acceptableTypeIdentifiers].
37        #[unsafe(method(setAcceptableTypeIdentifiers:))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn setAcceptableTypeIdentifiers(
40            &self,
41            acceptable_type_identifiers: &NSArray<NSString>,
42        );
43
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(initWithAcceptableTypeIdentifiers:))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn initWithAcceptableTypeIdentifiers(
51            this: Allocated<Self>,
52            acceptable_type_identifiers: &NSArray<NSString>,
53        ) -> Retained<Self>;
54
55        #[unsafe(method(addAcceptableTypeIdentifiers:))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn addAcceptableTypeIdentifiers(
58            &self,
59            acceptable_type_identifiers: &NSArray<NSString>,
60        );
61
62        #[unsafe(method(initWithTypeIdentifiersForAcceptingClass:))]
63        #[unsafe(method_family = init)]
64        pub unsafe fn initWithTypeIdentifiersForAcceptingClass(
65            this: Allocated<Self>,
66            a_class: &AnyClass,
67        ) -> Retained<Self>;
68
69        #[unsafe(method(addTypeIdentifiersForAcceptingClass:))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn addTypeIdentifiersForAcceptingClass(&self, a_class: &AnyClass);
72    );
73}
74
75/// Methods declared on superclass `NSObject`.
76impl UIPasteConfiguration {
77    extern_methods!(
78        #[unsafe(method(new))]
79        #[unsafe(method_family = new)]
80        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
81    );
82}