objc2_ui_kit/generated/
UIMailConversationContext.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_class!(
11    /// A class that represents an email conversation.
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uimailconversationcontext?language=objc)
14    #[unsafe(super(UIConversationContext, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "UIConversationContext")]
17    pub struct UIMailConversationContext;
18);
19
20#[cfg(feature = "UIConversationContext")]
21extern_conformance!(
22    unsafe impl NSObjectProtocol for UIMailConversationContext {}
23);
24
25#[cfg(feature = "UIConversationContext")]
26impl UIMailConversationContext {
27    extern_methods!(
28        /// A string that contains the subject line of an intended response.
29        #[unsafe(method(responseSubject))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn responseSubject(&self) -> Retained<NSString>;
32
33        /// Setter for [`responseSubject`][Self::responseSubject].
34        #[unsafe(method(setResponseSubject:))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn setResponseSubject(&self, response_subject: &NSString);
37
38        /// A Boolean value that indicates whether the intended response contains a custom signature.
39        #[unsafe(method(responseHasCustomSignature))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn responseHasCustomSignature(&self) -> bool;
42
43        /// Setter for [`responseHasCustomSignature`][Self::responseHasCustomSignature].
44        #[unsafe(method(setResponseHasCustomSignature:))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn setResponseHasCustomSignature(&self, response_has_custom_signature: bool);
47
48        /// A set of strings that identifies the secondary recipients of the message, such as those in CC or BCC messages.
49        #[unsafe(method(responseSecondaryRecipientIdentifiers))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn responseSecondaryRecipientIdentifiers(&self) -> Retained<NSSet<NSString>>;
52
53        /// Setter for [`responseSecondaryRecipientIdentifiers`][Self::responseSecondaryRecipientIdentifiers].
54        #[unsafe(method(setResponseSecondaryRecipientIdentifiers:))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn setResponseSecondaryRecipientIdentifiers(
57            &self,
58            response_secondary_recipient_identifiers: &NSSet<NSString>,
59        );
60    );
61}
62
63/// Methods declared on superclass `NSObject`.
64#[cfg(feature = "UIConversationContext")]
65impl UIMailConversationContext {
66    extern_methods!(
67        #[unsafe(method(init))]
68        #[unsafe(method_family = init)]
69        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
70
71        #[unsafe(method(new))]
72        #[unsafe(method_family = new)]
73        pub unsafe fn new() -> Retained<Self>;
74    );
75}