objc2_identity_lookup/generated/
ILMessageCommunication.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/identitylookup/ilmessagecommunication?language=objc)
11    #[unsafe(super(ILCommunication, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "ILCommunication")]
14    pub struct ILMessageCommunication;
15);
16
17#[cfg(feature = "ILCommunication")]
18extern_conformance!(
19    unsafe impl NSCoding for ILMessageCommunication {}
20);
21
22#[cfg(feature = "ILCommunication")]
23extern_conformance!(
24    unsafe impl NSObjectProtocol for ILMessageCommunication {}
25);
26
27#[cfg(feature = "ILCommunication")]
28extern_conformance!(
29    unsafe impl NSSecureCoding for ILMessageCommunication {}
30);
31
32#[cfg(feature = "ILCommunication")]
33impl ILMessageCommunication {
34    extern_methods!(
35        #[unsafe(method(messageBody))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn messageBody(&self) -> Option<Retained<NSString>>;
38
39        #[unsafe(method(isEqualToMessageCommunication:))]
40        #[unsafe(method_family = none)]
41        pub unsafe fn isEqualToMessageCommunication(
42            &self,
43            communication: &ILMessageCommunication,
44        ) -> bool;
45
46        #[unsafe(method(init))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49    );
50}
51
52/// Methods declared on superclass `NSObject`.
53#[cfg(feature = "ILCommunication")]
54impl ILMessageCommunication {
55    extern_methods!(
56        #[unsafe(method(new))]
57        #[unsafe(method_family = new)]
58        pub unsafe fn new() -> Retained<Self>;
59    );
60}