Package apple.contacts
Class CNContact
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.contacts.CNContact
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSItemProviderReading,NSItemProviderWriting,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
CNMutableContact
public class CNContact extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading, NSItemProviderWriting
An immutable value object representing a contact. CNContact is thread safe. If using a CNContact instance where you are not certain of the keys that were fetched, use isKeyAvailable: or areKeysAvailable:. If these return NO you need to refetch the contact by the contact identifier with the keys you want to fetch. Accessing a property that was not fetched will throw CNContactPropertyNotFetchedExceptionName.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCNContact.Block_comparatorForNameSortOrder_ret-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSItemProviderWriting
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCNContact(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)@Nullable CNContact_objectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)@NotNull NSArray<java.lang.String>_readableTypeIdentifiersForItemProvider()boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.@NotNull NSArray<java.lang.String>_writableTypeIdentifiersForItemProvider_static()static booleanaccessInstanceVariablesDirectly()static CNContactalloc()static CNContactallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanareKeysAvailable(@NotNull NSArray<?> keyDescriptors)Returns YES if the values for the keys specified by all the descriptors were fetched.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@Nullable NSDateComponentsbirthday()The Gregorian birthday.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static @NotNull CNContact.Block_comparatorForNameSortOrder_retcomparatorForNameSortOrder(long sortOrder)The contact comparator for a given sort order.@NotNull NSArray<? extends CNLabeledValue<CNContactRelation>>contactRelations()longcontactType()@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@NotNull NSArray<? extends CNLabeledValue<NSDateComponents>>dates()Other Gregorian dates (anniversaries, etc).static java.lang.StringdebugDescription_static()@NotNull java.lang.StringdepartmentName()static java.lang.Stringdescription_static()static @NotNull CNKeyDescriptordescriptorForAllComparatorKeys()Use to fetch all contact keys required for the contact sort comparator.@NotNull NSArray<? extends CNLabeledValue<java.lang.String>>emailAddresses()voidencodeWithCoder(@NotNull NSCoder coder)@NotNull java.lang.StringfamilyName()@NotNull java.lang.StringgivenName()static longhash_static()@NotNull java.lang.Stringidentifier()The identifier is unique among contacts on the device.@Nullable NSDataimageData()booleanimageDataAvailable()API-Since: 9.0CNContactinit()CNContactinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@NotNull NSArray<? extends CNLabeledValue<CNInstantMessageAddress>>instantMessageAddresses()booleanisKeyAvailable(@NotNull java.lang.String key)Returns YES if the value for the specified key was fetched.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisUnifiedWithContactWithIdentifier(@NotNull java.lang.String contactIdentifier)Unification Returns YES if the receiver was fetched as a unified contact and includes the contact having contactIdentifier in its unificationlongitemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull java.lang.String typeIdentifier)static longitemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull java.lang.String typeIdentifier)@NotNull java.lang.StringjobTitle()static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable NSProgressloadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)One of writableTypeIdentifiersForItemProviderstatic @NotNull java.lang.StringlocalizedStringForKey(@NotNull java.lang.String key)Returns a user displayable property name.@NotNull java.lang.StringmiddleName()@NotNull java.lang.ObjectmutableCopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)@NotNull java.lang.StringnamePrefix()@NotNull java.lang.StringnameSuffix()static CNContactnew_objc()@NotNull java.lang.Stringnickname()@Nullable NSDateComponentsnonGregorianBirthday()The alternate birthday (Lunisolar).@NotNull java.lang.Stringnote()static @Nullable CNContactobjectWithItemProviderDataTypeIdentifierError(@NotNull NSData data, @NotNull java.lang.String typeIdentifier, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)@NotNull java.lang.StringorganizationName()@NotNull NSArray<? extends CNLabeledValue<CNPhoneNumber>>phoneNumbers()@NotNull java.lang.StringphoneticFamilyName()@NotNull java.lang.StringphoneticGivenName()@NotNull java.lang.StringphoneticMiddleName()@NotNull java.lang.StringphoneticOrganizationName()API-Since: 10.0@NotNull NSArray<? extends CNLabeledValue<CNPostalAddress>>postalAddresses()static @NotNull NSPredicatepredicateForContactsInContainerWithIdentifier(@NotNull java.lang.String containerIdentifier)static @NotNull NSPredicatepredicateForContactsInGroupWithIdentifier(@NotNull java.lang.String groupIdentifier)static @NotNull NSPredicatepredicateForContactsMatchingEmailAddress(@NotNull java.lang.String emailAddress)Fetch contacts matching an email address.static @NotNull NSPredicatepredicateForContactsMatchingName(@NotNull java.lang.String name)To fetch contacts matching a name.static @NotNull NSPredicatepredicateForContactsMatchingPhoneNumber(@NotNull CNPhoneNumber phoneNumber)Fetch contacts matching a phone number.static @NotNull NSPredicatepredicateForContactsWithIdentifiers(@NotNull NSArray<java.lang.String> identifiers)To fetch contacts matching contact identifiers.@NotNull java.lang.StringpreviousFamilyName()static @NotNull NSArray<java.lang.String>readableTypeIdentifiersForItemProvider()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)@NotNull NSArray<? extends CNLabeledValue<CNSocialProfile>>socialProfiles()static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()@Nullable NSDatathumbnailImageData()@NotNull NSArray<? extends CNLabeledValue<java.lang.String>>urlAddresses()static booleanuseStoredAccessor()Deprecated.static longversion_static()@NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider()static @NotNull NSArray<java.lang.String>writableTypeIdentifiersForItemProvider_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CNContact alloc()
-
allocWithZone
public static CNContact 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()
-
comparatorForNameSortOrder
@NotNull public static @NotNull CNContact.Block_comparatorForNameSortOrder_ret comparatorForNameSortOrder(long sortOrder)
The contact comparator for a given sort order.
-
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()
Use to fetch all contact keys required for the contact sort comparator.
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)Returns a user displayable property name.
-
new_objc
public static CNContact new_objc()
-
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)
To fetch contacts matching a name. The name can contain any number of words.
-
predicateForContactsWithIdentifiers
@NotNull public static @NotNull NSPredicate predicateForContactsWithIdentifiers(@NotNull @NotNull 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(@NotNull @NotNull NSArray<?> keyDescriptors)Returns YES if the values for the keys specified by all the descriptors were fetched.
-
birthday
@Nullable public @Nullable NSDateComponents birthday()
The Gregorian birthday.
-
contactRelations
@NotNull public @NotNull NSArray<? extends CNLabeledValue<CNContactRelation>> contactRelations()
-
contactType
public long contactType()
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
dates
@NotNull public @NotNull NSArray<? extends CNLabeledValue<NSDateComponents>> dates()
Other Gregorian dates (anniversaries, etc).
-
departmentName
@NotNull public @NotNull java.lang.String departmentName()
-
emailAddresses
@NotNull public @NotNull NSArray<? extends CNLabeledValue<java.lang.String>> emailAddresses()
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
familyName
@NotNull public @NotNull java.lang.String familyName()
-
givenName
@NotNull public @NotNull java.lang.String givenName()
-
identifier
@NotNull public @NotNull 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
@Nullable public @Nullable NSData imageData()
-
imageDataAvailable
public boolean imageDataAvailable()
API-Since: 9.0
-
initWithCoder
public CNContact initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
instantMessageAddresses
@NotNull public @NotNull NSArray<? extends CNLabeledValue<CNInstantMessageAddress>> instantMessageAddresses()
-
isKeyAvailable
public boolean isKeyAvailable(@NotNull @NotNull java.lang.String key)Returns YES if the value for the specified key was fetched.
-
isUnifiedWithContactWithIdentifier
public boolean isUnifiedWithContactWithIdentifier(@NotNull @NotNull 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
@NotNull public @NotNull java.lang.String jobTitle()
-
middleName
@NotNull public @NotNull java.lang.String middleName()
-
mutableCopyWithZone
@NotNull public @NotNull java.lang.Object mutableCopyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
namePrefix
@NotNull public @NotNull java.lang.String namePrefix()
-
nameSuffix
@NotNull public @NotNull java.lang.String nameSuffix()
-
nickname
@NotNull public @NotNull java.lang.String nickname()
-
nonGregorianBirthday
@Nullable public @Nullable NSDateComponents nonGregorianBirthday()
The alternate birthday (Lunisolar).
-
note
@NotNull public @NotNull java.lang.String note()
-
organizationName
@NotNull public @NotNull java.lang.String organizationName()
-
phoneNumbers
@NotNull public @NotNull NSArray<? extends CNLabeledValue<CNPhoneNumber>> phoneNumbers()
-
phoneticFamilyName
@NotNull public @NotNull java.lang.String phoneticFamilyName()
-
phoneticGivenName
@NotNull public @NotNull java.lang.String phoneticGivenName()
-
phoneticMiddleName
@NotNull public @NotNull java.lang.String phoneticMiddleName()
-
phoneticOrganizationName
@NotNull public @NotNull java.lang.String phoneticOrganizationName()
API-Since: 10.0
-
postalAddresses
@NotNull public @NotNull NSArray<? extends CNLabeledValue<CNPostalAddress>> postalAddresses()
-
previousFamilyName
@NotNull public @NotNull java.lang.String previousFamilyName()
-
socialProfiles
@NotNull public @NotNull NSArray<? extends CNLabeledValue<CNSocialProfile>> socialProfiles()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
thumbnailImageData
@Nullable public @Nullable NSData thumbnailImageData()
-
urlAddresses
@NotNull public @NotNull NSArray<? extends CNLabeledValue<java.lang.String>> urlAddresses()
-
itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)
-
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(@NotNull @NotNull java.lang.String typeIdentifier)- Specified by:
_itemProviderVisibilityForRepresentationWithTypeIdentifier_staticin interfaceNSItemProviderWriting
-
itemProviderVisibilityForRepresentationWithTypeIdentifier
public long itemProviderVisibilityForRepresentationWithTypeIdentifier(@NotNull @NotNull java.lang.String typeIdentifier)
-
loadDataWithTypeIdentifierForItemProviderCompletionHandler
@Nullable public @Nullable NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(@NotNull @NotNull java.lang.String typeIdentifier, @NotNull NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
Description copied from interface:NSItemProviderWritingOne of writableTypeIdentifiersForItemProvider- Specified by:
loadDataWithTypeIdentifierForItemProviderCompletionHandlerin interfaceNSItemProviderWriting
-
objectWithItemProviderDataTypeIdentifierError
@Nullable public static @Nullable CNContact objectWithItemProviderDataTypeIdentifierError(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
-
_objectWithItemProviderDataTypeIdentifierError
@Nullable public @Nullable CNContact _objectWithItemProviderDataTypeIdentifierError(@NotNull @NotNull NSData data, @NotNull @NotNull java.lang.String typeIdentifier, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
- Specified by:
_objectWithItemProviderDataTypeIdentifierErrorin interfaceNSItemProviderReading
-
readableTypeIdentifiersForItemProvider
@NotNull public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
-
_readableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
- Specified by:
_readableTypeIdentifiersForItemProviderin interfaceNSItemProviderReading
-
writableTypeIdentifiersForItemProvider_static
@NotNull public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
-
_writableTypeIdentifiersForItemProvider_static
@NotNull public @NotNull NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
- Specified by:
_writableTypeIdentifiersForItemProvider_staticin interfaceNSItemProviderWriting
-
writableTypeIdentifiersForItemProvider
@NotNull public @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
-
predicateForContactsMatchingEmailAddress
@NotNull public static @NotNull NSPredicate predicateForContactsMatchingEmailAddress(@NotNull @NotNull 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:"). API-Since: 11.0
-
predicateForContactsMatchingPhoneNumber
@NotNull public static @NotNull NSPredicate predicateForContactsMatchingPhoneNumber(@NotNull @NotNull 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:"). API-Since: 11.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-