Class CNContact

    • Constructor Detail

      • CNContact

        protected CNContact​(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()
      • descriptorForAllComparatorKeys

        public static CNKeyDescriptor descriptorForAllComparatorKeys()
        Use to fetch all contact keys required for the contact sort comparator.
      • 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)
      • localizedStringForKey

        public static java.lang.String localizedStringForKey​(java.lang.String key)
        Returns a user displayable property name.
      • new_objc

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

        public static NSPredicate predicateForContactsInContainerWithIdentifier​(java.lang.String containerIdentifier)
      • predicateForContactsInGroupWithIdentifier

        public static NSPredicate predicateForContactsInGroupWithIdentifier​(java.lang.String groupIdentifier)
      • predicateForContactsMatchingName

        public static NSPredicate predicateForContactsMatchingName​(java.lang.String name)
        To fetch contacts matching a name. The name can contain any number of words.
      • predicateForContactsWithIdentifiers

        public static NSPredicate predicateForContactsWithIdentifiers​(NSArray<java.lang.String> identifiers)
        To fetch contacts matching contact identifiers.
      • 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()
      • areKeysAvailable

        public boolean areKeysAvailable​(NSArray<?> keyDescriptors)
        Returns YES if the values for the keys specified by all the descriptors were fetched.
      • contactType

        public long contactType()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • departmentName

        public java.lang.String departmentName()
      • familyName

        public java.lang.String familyName()
      • givenName

        public java.lang.String givenName()
      • identifier

        public java.lang.String identifier()
        The identifier is unique among contacts on the device. It can be saved and used for fetching contacts next application launch.
      • imageData

        public NSData imageData()
      • imageDataAvailable

        public boolean imageDataAvailable()
      • isKeyAvailable

        public boolean isKeyAvailable​(java.lang.String key)
        Returns YES if the value for the specified key was fetched.
      • isUnifiedWithContactWithIdentifier

        public boolean isUnifiedWithContactWithIdentifier​(java.lang.String contactIdentifier)
        Unification Returns YES if the receiver was fetched as a unified contact and includes the contact having contactIdentifier in its unification
      • jobTitle

        public java.lang.String jobTitle()
      • middleName

        public java.lang.String middleName()
      • mutableCopyWithZone

        public java.lang.Object mutableCopyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • namePrefix

        public java.lang.String namePrefix()
      • nameSuffix

        public java.lang.String nameSuffix()
      • nickname

        public java.lang.String nickname()
      • nonGregorianBirthday

        public NSDateComponents nonGregorianBirthday()
        The alternate birthday (Lunisolar).
      • note

        public java.lang.String note()
      • organizationName

        public java.lang.String organizationName()
      • phoneticFamilyName

        public java.lang.String phoneticFamilyName()
      • phoneticGivenName

        public java.lang.String phoneticGivenName()
      • phoneticMiddleName

        public java.lang.String phoneticMiddleName()
      • phoneticOrganizationName

        public java.lang.String phoneticOrganizationName()
      • previousFamilyName

        public java.lang.String previousFamilyName()
      • _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
      • thumbnailImageData

        public NSData thumbnailImageData()
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(java.lang.String typeIdentifier)
      • itemProviderVisibilityForRepresentationWithTypeIdentifier

        public long itemProviderVisibilityForRepresentationWithTypeIdentifier​(java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        public static java.lang.Object objectWithItemProviderDataTypeIdentifierError​(NSData data,
                                                                                     java.lang.String typeIdentifier,
                                                                                     org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • writableTypeIdentifiersForItemProvider

        public NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
      • predicateForContactsMatchingEmailAddress

        public static NSPredicate predicateForContactsMatchingEmailAddress​(java.lang.String emailAddress)
        Fetch contacts matching an email address. Use this predicate to find the contact(s) which contain the specified email address. The search is not case-sensitive.
        Parameters:
        emailAddress - The email address to search for. Do not include a scheme (e.g., "mailto:").
      • predicateForContactsMatchingPhoneNumber

        public static NSPredicate predicateForContactsMatchingPhoneNumber​(CNPhoneNumber phoneNumber)
        Fetch contacts matching a phone number. If the predicate and contact differ in their use or presence of country codes, a best effort will be made to match results; however, inexact matches are not guaranteed.
        Parameters:
        phoneNumber - A @c CNPhoneNumber representing the phone number to search for. Do not include a scheme (e.g., "tel:").