Class ABAddressBook

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ABAddressBook
    extends CFType
    • Constructor Detail

      • ABAddressBook

        public ABAddressBook()
    • Method Detail

      • getLocalizedLabel

        public static java.lang.String getLocalizedLabel​(ABPropertyLabel label)
      • getAuthorizationStatus

        @Deprecated
        public static ABAuthorizationStatus getAuthorizationStatus()
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore authorizationStatusForEntityType:]
        Since:
        Available in iOS 2.0 and later.
      • create

        @Deprecated
        public static ABAddressBook create()
        Deprecated.
        Deprecated in iOS 9.0. use [[CNContactStore alloc] init]
        Since:
        Available in iOS 2.0 and later.
      • requestAccess

        @Deprecated
        public void requestAccess​(ABAddressBook.RequestAccessCompletionHandler completion)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore requestAccessForEntityType:completionHandler:]
        Since:
        Available in iOS 2.0 and later.
      • save

        @Deprecated
        public boolean save()
                     throws NSErrorException
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore executeSaveRequest:error:]
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • hasUnsavedChanges

        @Deprecated
        public boolean hasUnsavedChanges()
        Deprecated.
        Deprecated in iOS 9.0.
        Since:
        Available in iOS 2.0 and later.
      • addRecord

        @Deprecated
        public boolean addRecord​(ABRecord record)
                          throws NSErrorException
        Deprecated.
        Deprecated in iOS 9.0. use CNSaveRequest
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • removeRecord

        @Deprecated
        public boolean removeRecord​(ABRecord record)
                             throws NSErrorException
        Deprecated.
        Deprecated in iOS 9.0. use CNSaveRequest
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • getLocalizedLabel

        @Deprecated
        public static java.lang.String getLocalizedLabel​(java.lang.String label)
        Deprecated.
        Deprecated in iOS 9.0. use [CNLabeledValue localizedStringForLabel:]
        Since:
        Available in iOS 2.0 and later.
      • registerExternalChangeCallback

        @Deprecated
        protected void registerExternalChangeCallback​(org.robovm.rt.bro.ptr.FunctionPtr callback,
                                                      long context)
        Deprecated.
        Deprecated in iOS 9.0. use CNContactStoreDidChangeNotification
        Since:
        Available in iOS 2.0 and later.
      • unregisterExternalChangeCallback

        @Deprecated
        protected void unregisterExternalChangeCallback​(org.robovm.rt.bro.ptr.FunctionPtr callback,
                                                        long context)
        Deprecated.
        Deprecated in iOS 9.0.
        Since:
        Available in iOS 2.0 and later.
      • revert

        @Deprecated
        public void revert()
        Deprecated.
        Deprecated in iOS 9.0. refetch CN objects
        Since:
        Available in iOS 2.0 and later.
      • getDefaultSource

        @Deprecated
        public ABSource getDefaultSource()
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers: @[CNContactStore.defaultContainerIdentifier]] error:]
        Since:
        Available in iOS 2.0 and later.
      • getSource

        @Deprecated
        public ABSource getSource​(int sourceID)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers:] error:]
        Since:
        Available in iOS 2.0 and later.
      • getAllSources

        @Deprecated
        public java.util.List<ABSource> getAllSources()
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:nil error:]
        Since:
        Available in iOS 2.0 and later.
      • getPersonCount

        @Deprecated
        public long getPersonCount()
        Deprecated.
        Deprecated in iOS 9.0. use count of fetch results for CNContactFetchRequest with predicate = nil
        Since:
        Available in iOS 2.0 and later.
      • getPerson

        @Deprecated
        public ABPerson getPerson​(int recordID)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore unifiedContactWithIdentifier:keysToFetch:error:]
        Since:
        Available in iOS 2.0 and later.
      • getAllPeople

        @Deprecated
        public java.util.List<ABPerson> getAllPeople()
        Deprecated.
        Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = nil
        Since:
        Available in iOS 2.0 and later.
      • getAllPeopleInSource

        @Deprecated
        public java.util.List<ABPerson> getAllPeopleInSource​(ABSource source)
        Deprecated.
        Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NO
        Since:
        Available in iOS 2.0 and later.
      • getAllPeopleInSource

        @Deprecated
        public java.util.List<ABPerson> getAllPeopleInSource​(ABSource source,
                                                             ABPersonSortOrdering sortOrdering)
        Deprecated.
        Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NO and sortOrder
        Since:
        Available in iOS 2.0 and later.
      • getPeople

        @Deprecated
        public java.util.List<ABPerson> getPeople​(java.lang.String name)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore unifiedContactsMatchingPredicate:[CNContact predicateForContactsMatchingName:] keysToFetch: error:]
        Since:
        Available in iOS 2.0 and later.
      • getGroup

        @Deprecated
        public ABGroup getGroup​(int recordID)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsWithIdentifiers:] error:]
        Since:
        Available in iOS 2.0 and later.
      • getGroupCount

        @Deprecated
        public long getGroupCount()
        Deprecated.
        Deprecated in iOS 9.0. use count of fetch results for [CNContactStore groupsMatchingPredicate:nil error:]
        Since:
        Available in iOS 2.0 and later.
      • getAllGroups

        @Deprecated
        public java.util.List<ABGroup> getAllGroups()
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:nil error:]
        Since:
        Available in iOS 2.0 and later.
      • getAllGroupsInSource

        @Deprecated
        public java.util.List<ABGroup> getAllGroupsInSource​(ABSource source)
        Deprecated.
        Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsInContainerWithIdentifier:] error:]
        Since:
        Available in iOS 2.0 and later.