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