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        fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>;
19
20        #[cfg(feature = "UIPasteConfiguration")]
21        /// Setter for [`pasteConfiguration`][Self::pasteConfiguration].
22        ///
23        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
24        #[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);