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. API-Since: 9.0
    • Constructor Detail

      • CNContactFetchRequest

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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​(@NotNull
                                                         @NotNull NSArray<?> keysToFetch)
        Only fetch the properties that will be used.
        Parameters:
        keysToFetch - The properties to fetch for the returned contacts.
      • keysToFetch

        @NotNull
        public @NotNull 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. API-Since: 10.0
      • predicate

        @Nullable
        public @Nullable 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​(@NotNull
                                   @NotNull 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. API-Since: 10.0
      • setPredicate

        public void setPredicate​(@Nullable
                                 @Nullable 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.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.