objc2_ui_kit/generated/
UIMessageConversationContext.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::*;
6
7use crate::*;
8
9extern_class!(
10    /// A class that represents a message conversation.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uimessageconversationcontext?language=objc)
13    #[unsafe(super(UIConversationContext, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(feature = "UIConversationContext")]
16    pub struct UIMessageConversationContext;
17);
18
19#[cfg(feature = "UIConversationContext")]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for UIMessageConversationContext {}
22);
23
24#[cfg(feature = "UIConversationContext")]
25impl UIMessageConversationContext {
26    extern_methods!(
27        /// A Boolean value that indicates whether the message thread is "junk", such as spam.
28        #[unsafe(method(isJunk))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn isJunk(&self) -> bool;
31
32        /// Setter for [`isJunk`][Self::isJunk].
33        #[unsafe(method(setIsJunk:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn setIsJunk(&self, is_junk: bool);
36    );
37}
38
39/// Methods declared on superclass `NSObject`.
40#[cfg(feature = "UIConversationContext")]
41impl UIMessageConversationContext {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}