objc2_contacts/generated/
CNGroup_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/// The predicates to match groups against.
11///
12///
13/// Can only use these predicates with CNContactStore.
14#[cfg(feature = "CNGroup")]
15impl CNGroup {
16    extern_methods!(
17        #[unsafe(method(predicateForGroupsWithIdentifiers:))]
18        #[unsafe(method_family = none)]
19        pub unsafe fn predicateForGroupsWithIdentifiers(
20            identifiers: &NSArray<NSString>,
21        ) -> Retained<NSPredicate>;
22
23        #[unsafe(method(predicateForSubgroupsInGroupWithIdentifier:))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn predicateForSubgroupsInGroupWithIdentifier(
26            parent_group_identifier: &NSString,
27        ) -> Retained<NSPredicate>;
28
29        #[unsafe(method(predicateForGroupsInContainerWithIdentifier:))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn predicateForGroupsInContainerWithIdentifier(
32            container_identifier: &NSString,
33        ) -> Retained<NSPredicate>;
34    );
35}