objc2_contacts/generated/
CNContainer_Predicates.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
9/// Predicates.
10///
11/// The predicates to match containers against.
12///
13///
14/// Can only use these predicates with CNContactStore.
15#[cfg(feature = "CNContainer")]
16impl CNContainer {
17    extern_methods!(
18        #[unsafe(method(predicateForContainersWithIdentifiers:))]
19        #[unsafe(method_family = none)]
20        pub unsafe fn predicateForContainersWithIdentifiers(
21            identifiers: &NSArray<NSString>,
22        ) -> Retained<NSPredicate>;
23
24        /// If the identifier is for a unified contact then the fetch will return an empty array. To fetch the containers of a unified contact, first fetch the linked contacts then fetch the container of each linked contact.
25        #[unsafe(method(predicateForContainerOfContactWithIdentifier:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn predicateForContainerOfContactWithIdentifier(
28            contact_identifier: &NSString,
29        ) -> Retained<NSPredicate>;
30
31        #[unsafe(method(predicateForContainerOfGroupWithIdentifier:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn predicateForContainerOfGroupWithIdentifier(
34            group_identifier: &NSString,
35        ) -> Retained<NSPredicate>;
36    );
37}