objc2_ui_kit/generated/
UITextPasteConfigurationSupporting.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_protocol!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/uikit/uitextpasteconfigurationsupporting?language=objc)
10    #[cfg(feature = "UIPasteConfigurationSupporting")]
11    pub unsafe trait UITextPasteConfigurationSupporting:
12        UIPasteConfigurationSupporting + MainThreadOnly
13    {
14        #[cfg(feature = "UITextPasteDelegate")]
15        #[unsafe(method(pasteDelegate))]
16        #[unsafe(method_family = none)]
17        unsafe fn pasteDelegate(&self)
18            -> Option<Retained<ProtocolObject<dyn UITextPasteDelegate>>>;
19
20        #[cfg(feature = "UITextPasteDelegate")]
21        /// This is a [weak property][objc2::topics::weak_property].
22        /// Setter for [`pasteDelegate`][Self::pasteDelegate].
23        #[unsafe(method(setPasteDelegate:))]
24        #[unsafe(method_family = none)]
25        unsafe fn setPasteDelegate(
26            &self,
27            paste_delegate: Option<&ProtocolObject<dyn UITextPasteDelegate>>,
28        );
29    }
30);