Class CNMutableContact

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSItemProviderReading, NSItemProviderWriting, NSMutableCopying, NSSecureCoding, NSObject

    public class CNMutableContact
    extends CNContact
    A mutable value object representing a contact. CNMutableContact is not thread safe. If this is a mutable copy of CNContact then it will throw CNContactPropertyNotFetchedExceptionName when accessing a property that was not fetched for the CNContact. [@note] To remove properties when saving a mutable contact, set string properties and array properties to empty values. Set other properties to nil.
    • Constructor Detail

      • CNMutableContact

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CNMutableContact 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()
      • descriptorForAllComparatorKeys

        @NotNull
        public static @NotNull CNKeyDescriptor descriptorForAllComparatorKeys()
      • 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)
      • localizedStringForKey

        @NotNull
        public static @NotNull java.lang.String localizedStringForKey​(@NotNull
                                                                      @NotNull java.lang.String key)
      • predicateForContactsInContainerWithIdentifier

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

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

        @NotNull
        public static @NotNull NSPredicate predicateForContactsMatchingName​(@NotNull
                                                                            @NotNull java.lang.String name)
      • predicateForContactsWithIdentifiers

        @NotNull
        public static @NotNull NSPredicate predicateForContactsWithIdentifiers​(@NotNull
                                                                               @NotNull NSArray<java.lang.String> 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()
      • birthday

        @Nullable
        public @Nullable NSDateComponents birthday()
        The Gregorian birthday. [@description] Only uses day, month and year components. Needs to have at least a day and a month.
        Overrides:
        birthday in class CNContact
      • dates

        @NotNull
        public @NotNull NSArray<? extends CNLabeledValue<NSDateComponents>> dates()
        Other Gregorian dates (anniversaries, etc). [@description] Only uses day, month and year components. Needs to have at least a day and a month.
        Overrides:
        dates in class CNContact
      • departmentName

        @NotNull
        public @NotNull java.lang.String departmentName()
        Overrides:
        departmentName in class CNContact
      • familyName

        @NotNull
        public @NotNull java.lang.String familyName()
        Overrides:
        familyName in class CNContact
      • givenName

        @NotNull
        public @NotNull java.lang.String givenName()
        Overrides:
        givenName in class CNContact
      • jobTitle

        @NotNull
        public @NotNull java.lang.String jobTitle()
        Overrides:
        jobTitle in class CNContact
      • middleName

        @NotNull
        public @NotNull java.lang.String middleName()
        Overrides:
        middleName in class CNContact
      • namePrefix

        @NotNull
        public @NotNull java.lang.String namePrefix()
        Overrides:
        namePrefix in class CNContact
      • nameSuffix

        @NotNull
        public @NotNull java.lang.String nameSuffix()
        Overrides:
        nameSuffix in class CNContact
      • nickname

        @NotNull
        public @NotNull java.lang.String nickname()
        Overrides:
        nickname in class CNContact
      • nonGregorianBirthday

        @Nullable
        public @Nullable NSDateComponents nonGregorianBirthday()
        The alternate birthday (Lunisolar). [@description] Only uses day, month, year and calendar components. Needs to have at least a day and a month. Calendar must be Chinese, Hebrew or Islamic.
        Overrides:
        nonGregorianBirthday in class CNContact
      • note

        @NotNull
        public @NotNull java.lang.String note()
        Overrides:
        note in class CNContact
      • organizationName

        @NotNull
        public @NotNull java.lang.String organizationName()
        Overrides:
        organizationName in class CNContact
      • phoneticFamilyName

        @NotNull
        public @NotNull java.lang.String phoneticFamilyName()
        Overrides:
        phoneticFamilyName in class CNContact
      • phoneticGivenName

        @NotNull
        public @NotNull java.lang.String phoneticGivenName()
        Overrides:
        phoneticGivenName in class CNContact
      • phoneticMiddleName

        @NotNull
        public @NotNull java.lang.String phoneticMiddleName()
        Overrides:
        phoneticMiddleName in class CNContact
      • phoneticOrganizationName

        @NotNull
        public @NotNull java.lang.String phoneticOrganizationName()
        Description copied from class: CNContact
        API-Since: 10.0
        Overrides:
        phoneticOrganizationName in class CNContact
      • previousFamilyName

        @NotNull
        public @NotNull java.lang.String previousFamilyName()
        Overrides:
        previousFamilyName in class CNContact
      • setBirthday

        public void setBirthday​(@Nullable
                                @Nullable NSDateComponents value)
        The Gregorian birthday. [@description] Only uses day, month and year components. Needs to have at least a day and a month.
      • setContactType

        public void setContactType​(long value)
      • setDates

        public void setDates​(@NotNull
                             @NotNull NSArray<? extends CNLabeledValue<NSDateComponents>> value)
        Other Gregorian dates (anniversaries, etc). [@description] Only uses day, month and year components. Needs to have at least a day and a month.
      • setDepartmentName

        public void setDepartmentName​(@NotNull
                                      @NotNull java.lang.String value)
      • setEmailAddresses

        public void setEmailAddresses​(@NotNull
                                      @NotNull NSArray<? extends CNLabeledValue<java.lang.String>> value)
      • setFamilyName

        public void setFamilyName​(@NotNull
                                  @NotNull java.lang.String value)
      • setGivenName

        public void setGivenName​(@NotNull
                                 @NotNull java.lang.String value)
      • setImageData

        public void setImageData​(@Nullable
                                 @Nullable NSData value)
      • setJobTitle

        public void setJobTitle​(@NotNull
                                @NotNull java.lang.String value)
      • setMiddleName

        public void setMiddleName​(@NotNull
                                  @NotNull java.lang.String value)
      • setNamePrefix

        public void setNamePrefix​(@NotNull
                                  @NotNull java.lang.String value)
      • setNameSuffix

        public void setNameSuffix​(@NotNull
                                  @NotNull java.lang.String value)
      • setNickname

        public void setNickname​(@NotNull
                                @NotNull java.lang.String value)
      • setNonGregorianBirthday

        public void setNonGregorianBirthday​(@Nullable
                                            @Nullable NSDateComponents value)
        The alternate birthday (Lunisolar). [@description] Only uses day, month, year and calendar components. Needs to have at least a day and a month. Calendar must be Chinese, Hebrew or Islamic.
      • setNote

        public void setNote​(@NotNull
                            @NotNull java.lang.String value)
      • setOrganizationName

        public void setOrganizationName​(@NotNull
                                        @NotNull java.lang.String value)
      • setPhoneticFamilyName

        public void setPhoneticFamilyName​(@NotNull
                                          @NotNull java.lang.String value)
      • setPhoneticGivenName

        public void setPhoneticGivenName​(@NotNull
                                         @NotNull java.lang.String value)
      • setPhoneticMiddleName

        public void setPhoneticMiddleName​(@NotNull
                                          @NotNull java.lang.String value)
      • setPhoneticOrganizationName

        public void setPhoneticOrganizationName​(@NotNull
                                                @NotNull java.lang.String value)
      • setPreviousFamilyName

        public void setPreviousFamilyName​(@NotNull
                                          @NotNull java.lang.String value)
      • setUrlAddresses

        public void setUrlAddresses​(@NotNull
                                    @NotNull NSArray<? extends CNLabeledValue<java.lang.String>> value)
      • _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
        Overrides:
        _supportsSecureCoding in class CNContact
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(@NotNull
                                                                                            @NotNull java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

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

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

        @NotNull
        public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • predicateForContactsMatchingEmailAddress

        @NotNull
        public static @NotNull NSPredicate predicateForContactsMatchingEmailAddress​(@NotNull
                                                                                    @NotNull java.lang.String emailAddress)
      • predicateForContactsMatchingPhoneNumber

        @NotNull
        public static @NotNull NSPredicate predicateForContactsMatchingPhoneNumber​(@NotNull
                                                                                   @NotNull CNPhoneNumber phoneNumber)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.