Class CNContactFetchRequest

  • All Implemented Interfaces:
    NSCoding, NSSecureCoding, NSObject

    public class CNContactFetchRequest
    extends CNFetchRequest
    implements NSSecureCoding
    Specifies the search criteria to fetch contacts. Used with [CNContactStore enumerateContactsWithFetchRequest:error:usingBlock:]. Can combine any of these options to create a contact fetch request.
    • Constructor Detail

      • CNContactFetchRequest

        protected CNContactFetchRequest​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • initWithKeysToFetch

        public CNContactFetchRequest initWithKeysToFetch​(NSArray<?> keysToFetch)
        Only fetch the properties that will be used.
        Parameters:
        keysToFetch - The properties to fetch for the returned contacts.
      • keysToFetch

        public NSArray<?> keysToFetch()
        The properties to fetch in the returned contacts. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
      • mutableObjects

        public boolean mutableObjects()
        To return mutable contacts. If YES returns CNMutableContact objects, otherwise returns CNContact objects. Default is NO.
      • predicate

        public NSPredicate predicate()
        The predicate to match contacts against. Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Set to nil to match all contacts.
      • setKeysToFetch

        public void setKeysToFetch​(NSArray<?> value)
        The properties to fetch in the returned contacts. Should only fetch the properties that will be used. Can combine contact keys and contact key descriptors.
      • setMutableObjects

        public void setMutableObjects​(boolean value)
        To return mutable contacts. If YES returns CNMutableContact objects, otherwise returns CNContact objects. Default is NO.
      • setPredicate

        public void setPredicate​(NSPredicate value)
        The predicate to match contacts against. Use only predicates from CNContact+Predicates.h. Compound predicates are not supported. Set to nil to match all contacts.
      • setSortOrder

        public void setSortOrder​(long value)
        To return contacts in a specific sort order. Default is CNContactSortOrderNone.
      • setUnifyResults

        public void setUnifyResults​(boolean value)
        To return linked contacts as unified contacts. If YES returns unified contacts, otherwise returns individual contacts. Default is YES. [@note] A unified contact is the aggregation of properties from a set of linked individual contacts. If an individual contact is not linked then the unified contact is simply that individual contact.
      • sortOrder

        public long sortOrder()
        To return contacts in a specific sort order. Default is CNContactSortOrderNone.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • unifyResults

        public boolean unifyResults()
        To return linked contacts as unified contacts. If YES returns unified contacts, otherwise returns individual contacts. Default is YES. [@note] A unified contact is the aggregation of properties from a set of linked individual contacts. If an individual contact is not linked then the unified contact is simply that individual contact.