Class ABGroup

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ABGroup
    extends ABRecord
    • Constructor Detail

      • ABGroup

        public ABGroup()
    • Method Detail

      • getName

        public java.lang.String getName()
      • create

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

        @Deprecated
        public static ABGroup create​(ABSource source)
        Deprecated.
        Deprecated in iOS 9.0. use [[CNMutableGroup alloc] init] and [CNSaveRequest addGroup:toContainerWithIdentifier:]
        Since:
        Available in iOS 2.0 and later.
      • getSource

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

        @Deprecated
        public java.util.List<ABPerson> getAllMembers()
        Deprecated.
        Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInGroupWithIdentifier:]
        Since:
        Available in iOS 2.0 and later.
      • getAllMembers

        @Deprecated
        public java.util.List<ABPerson> getAllMembers​(ABPersonSortOrdering sortOrdering)
        Deprecated.
        Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInGroupWithIdentifier:] and sortOrder
        Since:
        Available in iOS 2.0 and later.
      • addMember

        @Deprecated
        public boolean addMember​(ABPerson person)
                          throws NSErrorException
        Deprecated.
        Deprecated in iOS 9.0. use [CNSaveRequest addMember:toGroup:]
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.
      • removeMember

        @Deprecated
        public boolean removeMember​(ABPerson member)
                             throws NSErrorException
        Deprecated.
        Deprecated in iOS 9.0. use [CNSaveRequest removeMember:fromGroup:]
        Throws:
        NSErrorException
        Since:
        Available in iOS 2.0 and later.