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 unsafe fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>;
19
20 #[cfg(feature = "UIPasteConfiguration")]
21 #[unsafe(method(setPasteConfiguration:))]
23 #[unsafe(method_family = none)]
24 unsafe fn setPasteConfiguration(&self, paste_configuration: Option<&UIPasteConfiguration>);
25
26 #[optional]
27 #[unsafe(method(pasteItemProviders:))]
28 #[unsafe(method_family = none)]
29 unsafe fn pasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>);
30
31 #[optional]
32 #[unsafe(method(canPasteItemProviders:))]
33 #[unsafe(method_family = none)]
34 unsafe fn canPasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>) -> bool;
35 }
36);