objc2_ui_kit/generated/
UIPasteConfigurationSupporting.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_protocol!(
11 pub unsafe trait UIPasteConfigurationSupporting:
13 NSObjectProtocol + MainThreadOnly
14 {
15 #[cfg(feature = "UIPasteConfiguration")]
16 #[unsafe(method(pasteConfiguration))]
17 #[unsafe(method_family = none)]
18 fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>;
19
20 #[cfg(feature = "UIPasteConfiguration")]
21 #[unsafe(method(setPasteConfiguration:))]
25 #[unsafe(method_family = none)]
26 fn setPasteConfiguration(&self, paste_configuration: Option<&UIPasteConfiguration>);
27
28 #[optional]
29 #[unsafe(method(pasteItemProviders:))]
30 #[unsafe(method_family = none)]
31 fn pasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>);
32
33 #[optional]
34 #[unsafe(method(canPasteItemProviders:))]
35 #[unsafe(method_family = none)]
36 fn canPasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>) -> bool;
37 }
38);