objc2_ui_kit/generated/
UIPasteConfigurationSupporting.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_protocol!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uipasteconfigurationsupporting?language=objc)
12    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        /// Setter for [`pasteConfiguration`][Self::pasteConfiguration].
22        #[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);