ICNContactStore

Trait ICNContactStore 

Source
pub trait ICNContactStore: PNSObject {
Show 13 methods // Provided methods fn m_request_access_for_entity_type_completion_handler<F>( &self, entity_type: CNEntityType, completion_handler: F, ) where F: IntoConcreteBlock<(bool, *mut NSError), Ret = ()> + 'static { ... } fn m_authorization_status_for_entity_type( entity_type: CNEntityType, ) -> CNAuthorizationStatus { ... } fn m_enumerate_contacts_with_fetch_request_using_block<F>( &self, fetch_request: CNContactFetchRequest, block: F, ) -> Result<bool, NSError> where F: IntoConcreteBlock<(CNContact, *mut bool), Ret = ()> + 'static { ... } fn m_unified_me_contact_with_keys_to_fetch( &self, keys: NSArray<id>, ) -> Result<CNContact, NSError> { ... } fn m_unified_contact_with_identifier_keys_to_fetch( &self, identifier: NSString, keys: NSArray<id>, ) -> Result<CNContact, NSError> { ... } fn m_unified_contacts_matching_predicate_keys_to_fetch( &self, predicate: NSPredicate, keys: NSArray<id>, ) -> Result<NSArray<CNContact>, NSError> { ... } fn m_enumerator_for_contact_fetch_request( &self, fetch_request: CNContactFetchRequest, ) -> Result<CNFetchResult<NSEnumerator<CNContact>>, NSError> { ... } fn m_default_container_identifier(&self) -> NSString { ... } fn m_groups_matching_predicate( &self, predicate: NSPredicate, ) -> Result<NSArray<CNGroup>, NSError> { ... } fn m_containers_matching_predicate( &self, predicate: NSPredicate, ) -> Result<NSArray<CNContainer>, NSError> { ... } fn m_enumerator_for_change_history_fetch_request( &self, request: CNChangeHistoryFetchRequest, ) -> Result<CNFetchResult<NSEnumerator<CNChangeHistoryEvent>>, NSError> { ... } fn p_current_history_token(&self) -> NSData { ... } fn m_execute_save_request( &self, request: CNSaveRequest, ) -> Result<bool, NSError> { ... }
}
Expand description

A trait containing all the methods for CNContactStore

Provided Methods§

Source

fn m_request_access_for_entity_type_completion_handler<F>( &self, entity_type: CNEntityType, completion_handler: F, )
where F: IntoConcreteBlock<(bool, *mut NSError), Ret = ()> + 'static,

Requests access to the user’s contacts.

Source

fn m_authorization_status_for_entity_type( entity_type: CNEntityType, ) -> CNAuthorizationStatus

Returns the current authorization status to access the contact data.

Source

fn m_enumerate_contacts_with_fetch_request_using_block<F>( &self, fetch_request: CNContactFetchRequest, block: F, ) -> Result<bool, NSError>
where F: IntoConcreteBlock<(CNContact, *mut bool), Ret = ()> + 'static,

Returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executed successfully.

Source

fn m_unified_me_contact_with_keys_to_fetch( &self, keys: NSArray<id>, ) -> Result<CNContact, NSError>

Fetches the unified contact that’s the me card.

Source

fn m_unified_contact_with_identifier_keys_to_fetch( &self, identifier: NSString, keys: NSArray<id>, ) -> Result<CNContact, NSError>

Fetches a unified contact for the specified contact identifier.

Source

fn m_unified_contacts_matching_predicate_keys_to_fetch( &self, predicate: NSPredicate, keys: NSArray<id>, ) -> Result<NSArray<CNContact>, NSError>

Fetches all unified contacts matching the specified predicate.

Source

fn m_enumerator_for_contact_fetch_request( &self, fetch_request: CNContactFetchRequest, ) -> Result<CNFetchResult<NSEnumerator<CNContact>>, NSError>

Enumerates a contact fetch request.

Source

fn m_default_container_identifier(&self) -> NSString

Returns the identifier of the default container.

Source

fn m_groups_matching_predicate( &self, predicate: NSPredicate, ) -> Result<NSArray<CNGroup>, NSError>

Fetches all groups matching the specified predicate.

Source

fn m_containers_matching_predicate( &self, predicate: NSPredicate, ) -> Result<NSArray<CNContainer>, NSError>

Fetches all containers matching the specified predicate.

Source

fn m_enumerator_for_change_history_fetch_request( &self, request: CNChangeHistoryFetchRequest, ) -> Result<CNFetchResult<NSEnumerator<CNChangeHistoryEvent>>, NSError>

Enumerates a change history fetch request.

Source

fn p_current_history_token(&self) -> NSData

The current history token.

Source

fn m_execute_save_request( &self, request: CNSaveRequest, ) -> Result<bool, NSError>

Executes a save request and returns success or failure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§