objc2_intents/generated/
INSendMessageAttachment.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/intents/insendmessageattachment?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct INSendMessageAttachment;
13);
14
15extern_conformance!(
16    unsafe impl NSObjectProtocol for INSendMessageAttachment {}
17);
18
19impl INSendMessageAttachment {
20    extern_methods!(
21        #[cfg(feature = "INFile")]
22        #[unsafe(method(attachmentWithAudioMessageFile:))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn attachmentWithAudioMessageFile(
25            audio_message_file: &INFile,
26        ) -> Retained<INSendMessageAttachment>;
27
28        #[cfg(feature = "INFile")]
29        #[unsafe(method(audioMessageFile))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn audioMessageFile(&self) -> Option<Retained<INFile>>;
32    );
33}
34
35/// Methods declared on superclass `NSObject`.
36impl INSendMessageAttachment {
37    extern_methods!(
38        #[unsafe(method(init))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42        #[unsafe(method(new))]
43        #[unsafe(method_family = new)]
44        pub unsafe fn new() -> Retained<Self>;
45    );
46}