objc2_intents/generated/
INSendMessageIntent_Deprecated.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[cfg(all(feature = "INIntent", feature = "INSendMessageIntent"))]
11impl INSendMessageIntent {
12 extern_methods!(
13 #[cfg(feature = "INPerson")]
14 #[deprecated = "Use the designated initializer instead"]
15 #[unsafe(method(initWithRecipients:content:groupName:serviceName:sender:))]
16 #[unsafe(method_family = init)]
17 pub unsafe fn initWithRecipients_content_groupName_serviceName_sender(
18 this: Allocated<Self>,
19 recipients: Option<&NSArray<INPerson>>,
20 content: Option<&NSString>,
21 group_name: Option<&NSString>,
22 service_name: Option<&NSString>,
23 sender: Option<&INPerson>,
24 ) -> Retained<Self>;
25
26 #[cfg(all(feature = "INPerson", feature = "INSpeakableString"))]
27 #[deprecated = "Use the designated initializer with outgoingMessageType instead"]
28 #[unsafe(method(initWithRecipients:content:speakableGroupName:conversationIdentifier:serviceName:sender:))]
29 #[unsafe(method_family = init)]
30 pub unsafe fn initWithRecipients_content_speakableGroupName_conversationIdentifier_serviceName_sender(
31 this: Allocated<Self>,
32 recipients: Option<&NSArray<INPerson>>,
33 content: Option<&NSString>,
34 speakable_group_name: Option<&INSpeakableString>,
35 conversation_identifier: Option<&NSString>,
36 service_name: Option<&NSString>,
37 sender: Option<&INPerson>,
38 ) -> Retained<Self>;
39
40 #[cfg(all(
41 feature = "INOutgoingMessageType",
42 feature = "INPerson",
43 feature = "INSpeakableString"
44 ))]
45 #[deprecated = "Use the designated initializer with attachments instead instead"]
46 #[unsafe(method(initWithRecipients:outgoingMessageType:content:speakableGroupName:conversationIdentifier:serviceName:sender:))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn initWithRecipients_outgoingMessageType_content_speakableGroupName_conversationIdentifier_serviceName_sender(
49 this: Allocated<Self>,
50 recipients: Option<&NSArray<INPerson>>,
51 outgoing_message_type: INOutgoingMessageType,
52 content: Option<&NSString>,
53 speakable_group_name: Option<&INSpeakableString>,
54 conversation_identifier: Option<&NSString>,
55 service_name: Option<&NSString>,
56 sender: Option<&INPerson>,
57 ) -> Retained<Self>;
58
59 #[deprecated = "Use speakableGroupNames instead"]
60 #[unsafe(method(groupName))]
61 #[unsafe(method_family = none)]
62 pub unsafe fn groupName(&self) -> Option<Retained<NSString>>;
63 );
64}