Class ABGroup

All Implemented Interfaces:
AutoCloseable

public class ABGroup
extends ABRecord
  • Constructor Details

    • ABGroup

      public ABGroup()
  • Method Details

    • getName

      public String getName()
    • setName

      public ABGroup setName​(String name) throws NSErrorException
      Throws:
      NSErrorException
    • create

      @Deprecated public static ABGroup create()
      Deprecated.
      Deprecated in iOS 9.0. use [[CNMutableGroup alloc] init]
    • create

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

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

      @Deprecated public List<ABPerson> getAllMembers()
      Deprecated.
      Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInGroupWithIdentifier:]
    • getAllMembers

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

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

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