Class CNContactViewController

    • Constructor Detail

      • CNContactViewController

        protected CNContactViewController​(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)
      • attemptRotationToDeviceOrientation

        public static void attemptRotationToDeviceOrientation()
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • descriptorForRequiredKeys

        public static CNKeyDescriptor descriptorForRequiredKeys()
        Descriptor for all keys that must be fetched on a contact before setting it on the view controller. 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.)
      • 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)
      • new_objc

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

        public static void prepareInterstitialAds()
      • 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()
      • version_static

        public static long version_static()
      • viewControllerForContact

        public static CNContactViewController viewControllerForContact​(CNContact contact)
        Initializes a contact view controller for a known 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.
        See Also:
        contactStore(), allowsEditing()
      • viewControllerForNewContact

        public static CNContactViewController viewControllerForNewContact​(CNContact contact)
        Initializes a contact view controller for creating a new 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.
      • viewControllerForUnknownContact

        public static CNContactViewController viewControllerForUnknownContact​(CNContact contact)
        Initializes a contact view controller for an unknown 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.
        See Also:
        contactStore()
      • allowsActions

        public boolean allowsActions()
        YES by default
      • allowsEditing

        public boolean allowsEditing()
        YES by default
      • alternateName

        public java.lang.String alternateName()
        The name to use if the contact has no display name.
      • contact

        public CNContact contact()
        The contact being displayed.
      • contactStore

        public CNContactStore contactStore()
        The @c CNContactStore where the contact was fetched from or will be saved to. 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.
        See Also:
        allowsEditing()
      • displayedPropertyKeys

        public NSArray<?> displayedPropertyKeys()
        The @c CNContact property keys to display. If @c nil, all properties are displayed. (The property is @c nil by default.) [@note] All properties are visible when editing the contact.
      • highlightPropertyWithKeyIdentifier

        public void highlightPropertyWithKeyIdentifier​(java.lang.String key,
                                                       java.lang.String identifier)
        Highlight a property. Indicates whether to highlight a certain property value for the contact. If a single value property key is specified, identifier will be ignored.
      • initWithNibNameBundle

        public CNContactViewController initWithNibNameBundle​(java.lang.String nibNameOrNil,
                                                             NSBundle nibBundleOrNil)
        Description copied from class: UIViewController
        The designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.
        Overrides:
        initWithNibNameBundle in class UIViewController
      • message

        public java.lang.String message()
        The message to display under the name.
      • parentContainer

        public CNContainer parentContainer()
        A @c CNContainer where the new contact will be created. If not set the contact is added to the default container.
      • parentGroup

        public CNGroup parentGroup()
        A @c CNGroup where the new contact will be assigned membership. 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.
      • setAllowsActions

        public void setAllowsActions​(boolean value)
        YES by default
      • setAllowsEditing

        public void setAllowsEditing​(boolean value)
        YES by default
      • setAlternateName

        public void setAlternateName​(java.lang.String value)
        The name to use if the contact has no display name.
      • setContactStore

        public void setContactStore​(CNContactStore value)
        The @c CNContactStore where the contact was fetched from or will be saved to. 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.
        See Also:
        allowsEditing()
      • setDisplayedPropertyKeys

        public void setDisplayedPropertyKeys​(NSArray<?> value)
        The @c CNContact property keys to display. If @c nil, all properties are displayed. (The property is @c nil by default.) [@note] All properties are visible when editing the contact.
      • setMessage

        public void setMessage​(java.lang.String value)
        The message to display under the name.
      • setParentContainer

        public void setParentContainer​(CNContainer value)
        A @c CNContainer where the new contact will be created. If not set the contact is added to the default container.
      • setParentGroup

        public void setParentGroup​(CNGroup value)
        A @c CNGroup where the new contact will be assigned membership. 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.
      • setShouldShowLinkedContacts

        public void setShouldShowLinkedContacts​(boolean value)
        NO by default
      • shouldShowLinkedContacts

        public boolean shouldShowLinkedContacts()
        NO by default