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 containers against.
///
///
/// Can only use these predicates with CNContactStore.
#[cfg(feature = "CNContainer")]
impl CNContainer {
    extern_methods!(
        #[unsafe(method(predicateForContainersWithIdentifiers:))]
        #[unsafe(method_family = none)]
        pub unsafe fn predicateForContainersWithIdentifiers(
            identifiers: &NSArray<NSString>,
        ) -> Retained<NSPredicate>;

        /// 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.
        #[unsafe(method(predicateForContainerOfContactWithIdentifier:))]
        #[unsafe(method_family = none)]
        pub unsafe fn predicateForContainerOfContactWithIdentifier(
            contact_identifier: &NSString,
        ) -> Retained<NSPredicate>;

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