public class CNContactViewController extends UIViewController
This class can display a new contact, unknown contact or existing contact. You must use one of the class factory methods.
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
CNContactViewController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static CNContactViewController |
alloc() |
static CNContactViewController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsActions()
YES by default
|
boolean |
allowsEditing()
YES by default
|
java.lang.String |
alternateName()
The name to use if the contact has no display name.
|
static void |
attemptRotationToDeviceOrientation() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
CNContact |
contact()
The contact being displayed.
|
CNContactStore |
contactStore()
The @c CNContactStore where the contact was fetched from or will be saved to.
|
static java.lang.String |
debugDescription_static() |
CNContactViewControllerDelegate |
delegate()
The delegate to be notified.
|
static java.lang.String |
description_static() |
static CNKeyDescriptor |
descriptorForRequiredKeys()
Descriptor for all keys that must be fetched on a contact before setting it on the view controller.
|
NSArray<?> |
displayedPropertyKeys()
The @c CNContact property keys to display.
|
static long |
hash_static() |
void |
highlightPropertyWithKeyIdentifier(java.lang.String key,
java.lang.String identifier)
Highlight a property.
|
CNContactViewController |
init() |
CNContactViewController |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
CNContactViewController |
initWithNibNameBundle(java.lang.String nibNameOrNil,
NSBundle nibBundleOrNil)
The designated initializer.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
message()
The message to display under the name.
|
static CNContactViewController |
new_objc() |
CNContainer |
parentContainer()
A @c CNContainer where the new contact will be created.
|
CNGroup |
parentGroup()
A @c CNGroup where the new contact will be assigned membership.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowsActions(boolean value)
YES by default
|
void |
setAllowsEditing(boolean value)
YES by default
|
void |
setAlternateName(java.lang.String value)
The name to use if the contact has no display name.
|
void |
setContactStore(CNContactStore value)
The @c CNContactStore where the contact was fetched from or will be saved to.
|
void |
setDelegate_unsafe(CNContactViewControllerDelegate value)
The delegate to be notified.
|
void |
setDelegate(CNContactViewControllerDelegate value)
The delegate to be notified.
|
void |
setDisplayedPropertyKeys(NSArray<?> value)
The @c CNContact property keys to display.
|
void |
setMessage(java.lang.String value)
The message to display under the name.
|
void |
setParentContainer(CNContainer value)
A @c CNContainer where the new contact will be created.
|
void |
setParentGroup(CNGroup value)
A @c CNGroup where the new contact will be assigned membership.
|
void |
setShouldShowLinkedContacts(boolean value)
NO by default
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldShowLinkedContacts()
NO by default
|
static org.moe.natj.objc.Class |
superclass_static() |
static long |
version_static() |
static CNContactViewController |
viewControllerForContact(CNContact contact)
Initializes a contact view controller for a known contact.
|
static CNContactViewController |
viewControllerForNewContact(CNContact contact)
Initializes a contact view controller for creating a new contact.
|
static CNContactViewController |
viewControllerForUnknownContact(CNContact contact)
Initializes a contact view controller for an unknown contact.
|
addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentScrollViewForEdge, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, isBeingDismissed, isBeingPresented, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, overrideTraitCollectionForChildViewController, overrideUserInterfaceStyle, parentFocusEnvironment, parentViewController, performsActionsWhilePresentingModally, performSegueWithIdentifierSender, popoverPresentationController, preferredContentSize, preferredContentSizeDidChangeForChildContentContainer, preferredFocusedView, preferredFocusEnvironments, preferredInterfaceOrientationForPresentation, preferredScreenEdgesDeferringSystemGestures, preferredStatusBarStyle, preferredStatusBarUpdateAnimation, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegueSender, presentationController, presentedViewController, presentingViewController, presentModalViewControllerAnimated, presentMoviePlayerViewControllerAnimated, presentViewControllerAnimatedCompletion, previewActionItems, providesPresentationContextTransitionStyle, registerForPreviewingWithDelegateSourceView, removeFromParentViewController, removeKeyCommand, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentScrollViewForEdge, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass_unsafe, setRestorationClass, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate_unsafe, setTransitioningDelegate, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, sheetPresentationController, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unwindForSegueTowardsViewController, updateFocusIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewLayoutMarginsDidChange, viewRespectsSystemMinimumLayoutMargins, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSizeWithTransitionCoordinator, viewWillUnload, wantsFullScreenLayout, willAnimateFirstHalfOfRotationToInterfaceOrientationDuration, willAnimateRotationToInterfaceOrientationDuration, willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration, willMoveToParentViewController, willRotateToInterfaceOrientationDuration, willTransitionToTraitCollectionWithTransitionCoordinatoractivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected CNContactViewController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static CNContactViewController alloc()
public static CNContactViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void attemptRotationToDeviceOrientation()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static CNKeyDescriptor descriptorForRequiredKeys()
If you want to display an existing contact in a @c CNContactViewController, this descriptor must have been included in the @c keysToFetch property of the [@c] CNContactFetchRequest. (A newly created @c CNMutableContact may be used safely.)
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CNContactViewController new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public static CNContactViewController viewControllerForContact(CNContact contact)
Use this view controller for a contact that has been fetched from the user’s contacts database. Allows editing of the contact by default. [@note] All keys of the given contact must be fetched.
contactStore,
allowsEditingpublic static CNContactViewController viewControllerForNewContact(CNContact contact)
Use this view controller with a contact to be added to the user's contacts. [@note] The given contact should be a newly initialized contact and not one fetched from the user's contacts.
public static CNContactViewController viewControllerForUnknownContact(CNContact contact)
Use this view controller for a populated contact not fetched from the user’s contacts. Such a contact might be obtained by parsing a vCard or setting properties on a newly created @c CNMutableContact. This controller does not allow editing, but by default does allow actions for adding the contact to the contacts database.
contactStorepublic boolean allowsActions()
public boolean allowsEditing()
public java.lang.String alternateName()
public CNContact contact()
public CNContactStore contactStore()
If @c contactStore is not set, actions for adding the contact to the user's contacts are disabled. This does not affect the ability to edit the contact.
If the user edits the contact and the editing is committed, the contact will be updated in the user's contacts database or added to the user's contacts database if not already present.
To prevent editing of a known contact, set @c allowsEditing to @c NO.
allowsEditingpublic CNContactViewControllerDelegate delegate()
public NSArray<?> displayedPropertyKeys()
If @c nil, all properties are displayed. (The property is @c nil by default.) [@note] All properties are visible when editing the contact.
public void highlightPropertyWithKeyIdentifier(java.lang.String key,
java.lang.String identifier)
Indicates whether to highlight a certain property value for the contact. If a single value property key is specified, identifier will be ignored.
public CNContactViewController init()
init in class UIViewControllerpublic CNContactViewController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UIViewControllerpublic CNContactViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
UIViewControllerinitWithNibNameBundle in class UIViewControllerpublic java.lang.String message()
public CNContainer parentContainer()
If not set the contact is added to the default container.
public CNGroup parentGroup()
If not set the contact is added only to the default @c CNContainer with no group membership. [@note] When set to a group not in the default container, the container property must also be set to the container of parentGroup.
public void setAllowsActions(boolean value)
public void setAllowsEditing(boolean value)
public void setAlternateName(java.lang.String value)
public void setContactStore(CNContactStore value)
If @c contactStore is not set, actions for adding the contact to the user's contacts are disabled. This does not affect the ability to edit the contact.
If the user edits the contact and the editing is committed, the contact will be updated in the user's contacts database or added to the user's contacts database if not already present.
To prevent editing of a known contact, set @c allowsEditing to @c NO.
allowsEditingpublic void setDelegate_unsafe(CNContactViewControllerDelegate value)
public void setDelegate(CNContactViewControllerDelegate value)
public void setDisplayedPropertyKeys(NSArray<?> value)
If @c nil, all properties are displayed. (The property is @c nil by default.) [@note] All properties are visible when editing the contact.
public void setMessage(java.lang.String value)
public void setParentContainer(CNContainer value)
If not set the contact is added to the default container.
public void setParentGroup(CNGroup value)
If not set the contact is added only to the default @c CNContainer with no group membership. [@note] When set to a group not in the default container, the container property must also be set to the container of parentGroup.
public void setShouldShowLinkedContacts(boolean value)
public boolean shouldShowLinkedContacts()