objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

/// DeprecatedSearchForMessages.
#[cfg(all(feature = "INIntent", feature = "INSearchForMessagesIntent"))]
impl INSearchForMessagesIntent {
    extern_methods!(
        #[cfg(all(
            feature = "INDateComponentsRange",
            feature = "INMessageAttributeOptions",
            feature = "INPerson"
        ))]
        #[deprecated = "Use the designated initializer instead"]
        #[unsafe(method(initWithRecipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:groupNames:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithRecipients_senders_searchTerms_attributes_dateTimeRange_identifiers_notificationIdentifiers_groupNames(
            this: Allocated<Self>,
            recipients: Option<&NSArray<INPerson>>,
            senders: Option<&NSArray<INPerson>>,
            search_terms: Option<&NSArray<NSString>>,
            attributes: INMessageAttributeOptions,
            date_time_range: Option<&INDateComponentsRange>,
            identifiers: Option<&NSArray<NSString>>,
            notification_identifiers: Option<&NSArray<NSString>>,
            group_names: Option<&NSArray<NSString>>,
        ) -> Retained<Self>;

        #[cfg(all(
            feature = "INDateComponentsRange",
            feature = "INMessageAttributeOptions",
            feature = "INPerson",
            feature = "INSpeakableString"
        ))]
        #[deprecated = "Use the designated initializer instead"]
        #[unsafe(method(initWithRecipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:speakableGroupNames:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithRecipients_senders_searchTerms_attributes_dateTimeRange_identifiers_notificationIdentifiers_speakableGroupNames(
            this: Allocated<Self>,
            recipients: Option<&NSArray<INPerson>>,
            senders: Option<&NSArray<INPerson>>,
            search_terms: Option<&NSArray<NSString>>,
            attributes: INMessageAttributeOptions,
            date_time_range: Option<&INDateComponentsRange>,
            identifiers: Option<&NSArray<NSString>>,
            notification_identifiers: Option<&NSArray<NSString>>,
            speakable_group_names: Option<&NSArray<INSpeakableString>>,
        ) -> Retained<Self>;

        #[deprecated = "Use speakableGroupNames instead"]
        #[unsafe(method(groupNames))]
        #[unsafe(method_family = none)]
        pub unsafe fn groupNames(&self) -> Option<Retained<NSArray<NSString>>>;

        #[cfg(feature = "INConditionalOperator")]
        #[deprecated = "Use speakableGroupNamesOperator instead"]
        #[unsafe(method(groupNamesOperator))]
        #[unsafe(method_family = none)]
        pub unsafe fn groupNamesOperator(&self) -> INConditionalOperator;
    );
}