Instance Method


Determines whether all contact property values for the specified keys are fetched.


- (BOOL)areKeysAvailable:(NSArray<id<CNKeyDescriptor>> *)keyDescriptors;



An array of contact property keys and/or key descriptors from contact objects.

Return Value

YES if all the values are fetched; otherwise, NO.


The isKeyAvailable: or areKeysAvailable: methods are used where you are not certain of the keys that when fetched. If this method returns NO, refetch the contact using the contact identifier and the keys you want to fetch. Accessing a property that was not fetched will throw an CNContactPropertyNotFetchedExceptionName exception.

See Also

Checking the Availability of Data

- isKeyAvailable:

Determines whether the contact property value for the specified key is fetched.