Package org.robovm.apple.addressbook
Class ABAddressBook
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.addressbook.ABAddressBook
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ABAddressBook extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ABAddressBook.ExternalChangeCallback
static interface
ABAddressBook.RequestAccessCompletionHandler
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Constructor Description ABAddressBook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
addRecord(ABRecord record)
Deprecated.Deprecated in iOS 9.0. use CNSaveRequeststatic ABAddressBook
create()
Deprecated.Deprecated in iOS 9.0. use [[CNContactStore alloc] init]static ABAddressBook
create(NSDictionary options)
Deprecated.Deprecated in iOS 9.0. use [[CNContactStore alloc] init]java.util.List<ABGroup>
getAllGroups()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:nil error:]java.util.List<ABGroup>
getAllGroupsInSource(ABSource source)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsInContainerWithIdentifier:] error:]java.util.List<ABPerson>
getAllPeople()
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = niljava.util.List<ABPerson>
getAllPeopleInSource(ABSource source)
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NOjava.util.List<ABPerson>
getAllPeopleInSource(ABSource source, ABPersonSortOrdering sortOrdering)
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NO and sortOrderjava.util.List<ABSource>
getAllSources()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:nil error:]static ABAuthorizationStatus
getAuthorizationStatus()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore authorizationStatusForEntityType:]ABSource
getDefaultSource()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers: @[CNContactStore.defaultContainerIdentifier]] error:]ABGroup
getGroup(int recordID)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsWithIdentifiers:] error:]long
getGroupCount()
Deprecated.Deprecated in iOS 9.0. use count of fetch results for [CNContactStore groupsMatchingPredicate:nil error:]static java.lang.String
getLocalizedLabel(java.lang.String label)
Deprecated.Deprecated in iOS 9.0. use [CNLabeledValue localizedStringForLabel:]static java.lang.String
getLocalizedLabel(ABPropertyLabel label)
java.util.List<ABPerson>
getPeople(java.lang.String name)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore unifiedContactsMatchingPredicate:[CNContact predicateForContactsMatchingName:] keysToFetch: error:]ABPerson
getPerson(int recordID)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore unifiedContactWithIdentifier:keysToFetch:error:]long
getPersonCount()
Deprecated.Deprecated in iOS 9.0. use count of fetch results for CNContactFetchRequest with predicate = nilABSource
getSource(int sourceID)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers:] error:]boolean
hasUnsavedChanges()
Deprecated.Deprecated in iOS 9.0.void
registerExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)
protected void
registerExternalChangeCallback(org.robovm.rt.bro.ptr.FunctionPtr callback, long context)
Deprecated.Deprecated in iOS 9.0. use CNContactStoreDidChangeNotificationboolean
removeRecord(ABRecord record)
Deprecated.Deprecated in iOS 9.0. use CNSaveRequestvoid
requestAccess(ABAddressBook.RequestAccessCompletionHandler completion)
Deprecated.Deprecated in iOS 9.0. use [CNContactStore requestAccessForEntityType:completionHandler:]void
revert()
Deprecated.Deprecated in iOS 9.0. refetch CN objectsboolean
save()
Deprecated.Deprecated in iOS 9.0. use [CNContactStore executeSaveRequest:error:]void
unregisterExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)
protected void
unregisterExternalChangeCallback(org.robovm.rt.bro.ptr.FunctionPtr callback, long context)
Deprecated.Deprecated in iOS 9.0.-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
-
-
-
Method Detail
-
registerExternalChangeCallback
public void registerExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)
-
unregisterExternalChangeCallback
public void unregisterExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)
-
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(NSDictionary options) throws NSErrorException
Deprecated.Deprecated in iOS 9.0. use [[CNContactStore alloc] init]- Throws:
NSErrorException
- 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.
-
-