objc2-contacts 0.3.2

Bindings to the Contacts 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::*;

/// Predicates.
///
/// The predicates to match groups against.
///
///
/// Can only use these predicates with CNContactStore.
#[cfg(feature = "CNGroup")]
impl CNGroup {
    extern_methods!(
        #[unsafe(method(predicateForGroupsWithIdentifiers:))]
        #[unsafe(method_family = none)]
        pub unsafe fn predicateForGroupsWithIdentifiers(
            identifiers: &NSArray<NSString>,
        ) -> Retained<NSPredicate>;

        #[unsafe(method(predicateForSubgroupsInGroupWithIdentifier:))]
        #[unsafe(method_family = none)]
        pub unsafe fn predicateForSubgroupsInGroupWithIdentifier(
            parent_group_identifier: &NSString,
        ) -> Retained<NSPredicate>;

        #[unsafe(method(predicateForGroupsInContainerWithIdentifier:))]
        #[unsafe(method_family = none)]
        pub unsafe fn predicateForGroupsInContainerWithIdentifier(
            container_identifier: &NSString,
        ) -> Retained<NSPredicate>;
    );
}