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:
AutoCloseable
public class ABAddressBook extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceABAddressBook.ExternalChangeCallbackstatic interfaceABAddressBook.RequestAccessCompletionHandlerNested 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
Modifier and Type Method Description booleanaddRecord(ABRecord record)Deprecated.Deprecated in iOS 9.0.static ABAddressBookcreate()Deprecated.Deprecated in iOS 9.0.static ABAddressBookcreate(NSDictionary options)Deprecated.Deprecated in iOS 9.0.List<ABGroup>getAllGroups()Deprecated.Deprecated in iOS 9.0.List<ABGroup>getAllGroupsInSource(ABSource source)Deprecated.Deprecated in iOS 9.0.List<ABPerson>getAllPeople()Deprecated.Deprecated in iOS 9.0.List<ABPerson>getAllPeopleInSource(ABSource source)Deprecated.Deprecated in iOS 9.0.List<ABPerson>getAllPeopleInSource(ABSource source, ABPersonSortOrdering sortOrdering)Deprecated.Deprecated in iOS 9.0.List<ABSource>getAllSources()Deprecated.Deprecated in iOS 9.0.static ABAuthorizationStatusgetAuthorizationStatus()Deprecated.Deprecated in iOS 9.0.ABSourcegetDefaultSource()Deprecated.Deprecated in iOS 9.0.ABGroupgetGroup(int recordID)Deprecated.Deprecated in iOS 9.0.longgetGroupCount()Deprecated.Deprecated in iOS 9.0.static StringgetLocalizedLabel(String label)Deprecated.Deprecated in iOS 9.0.static StringgetLocalizedLabel(ABPropertyLabel label)List<ABPerson>getPeople(String name)Deprecated.Deprecated in iOS 9.0.ABPersongetPerson(int recordID)Deprecated.Deprecated in iOS 9.0.longgetPersonCount()Deprecated.Deprecated in iOS 9.0.ABSourcegetSource(int sourceID)Deprecated.Deprecated in iOS 9.0.booleanhasUnsavedChanges()Deprecated.Deprecated in iOS 9.0.voidregisterExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)protected voidregisterExternalChangeCallback(FunctionPtr callback, long context)Deprecated.Deprecated in iOS 9.0.booleanremoveRecord(ABRecord record)Deprecated.Deprecated in iOS 9.0.voidrequestAccess(ABAddressBook.RequestAccessCompletionHandler completion)Deprecated.Deprecated in iOS 9.0.voidrevert()Deprecated.Deprecated in iOS 9.0.booleansave()Deprecated.Deprecated in iOS 9.0.voidunregisterExternalChangeCallback(ABAddressBook.ExternalChangeCallback callback)protected voidunregisterExternalChangeCallback(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
-
Constructor Details
-
ABAddressBook
public ABAddressBook()
-
-
Method Details
-
registerExternalChangeCallback
-
unregisterExternalChangeCallback
-
getLocalizedLabel
-
getAuthorizationStatus
Deprecated.Deprecated in iOS 9.0. use [CNContactStore authorizationStatusForEntityType:] -
create
Deprecated.Deprecated in iOS 9.0. use [[CNContactStore alloc] init]- Throws:
NSErrorException
-
create
Deprecated.Deprecated in iOS 9.0. use [[CNContactStore alloc] init] -
requestAccess
Deprecated.Deprecated in iOS 9.0. use [CNContactStore requestAccessForEntityType:completionHandler:] -
save
Deprecated.Deprecated in iOS 9.0. use [CNContactStore executeSaveRequest:error:]- Throws:
NSErrorException
-
hasUnsavedChanges
Deprecated.Deprecated in iOS 9.0. -
addRecord
Deprecated.Deprecated in iOS 9.0. use CNSaveRequest- Throws:
NSErrorException
-
removeRecord
Deprecated.Deprecated in iOS 9.0. use CNSaveRequest- Throws:
NSErrorException
-
getLocalizedLabel
Deprecated.Deprecated in iOS 9.0. use [CNLabeledValue localizedStringForLabel:] -
registerExternalChangeCallback
Deprecated.Deprecated in iOS 9.0. use CNContactStoreDidChangeNotification -
unregisterExternalChangeCallback
Deprecated.Deprecated in iOS 9.0. -
revert
Deprecated.Deprecated in iOS 9.0. refetch CN objects -
getDefaultSource
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers: @[CNContactStore.defaultContainerIdentifier]] error:] -
getSource
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:[CNContainer predicateForContainersWithIdentifiers:] error:] -
getAllSources
Deprecated.Deprecated in iOS 9.0. use [CNContactStore containersMatchingPredicate:nil error:] -
getPersonCount
Deprecated.Deprecated in iOS 9.0. use count of fetch results for CNContactFetchRequest with predicate = nil -
getPerson
Deprecated.Deprecated in iOS 9.0. use [CNContactStore unifiedContactWithIdentifier:keysToFetch:error:] -
getAllPeople
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = nil -
getAllPeopleInSource
Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NO -
getAllPeopleInSource
@Deprecated public List<ABPerson> getAllPeopleInSource(ABSource source, ABPersonSortOrdering sortOrdering)Deprecated.Deprecated in iOS 9.0. use CNContactFetchRequest with predicate = [CNContact predicateForContactsInContainerWithIdentifier:] and unifyResults = NO and sortOrder -
getPeople
Deprecated.Deprecated in iOS 9.0. use [CNContactStore unifiedContactsMatchingPredicate:[CNContact predicateForContactsMatchingName:] keysToFetch: error:] -
getGroup
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsWithIdentifiers:] error:] -
getGroupCount
Deprecated.Deprecated in iOS 9.0. use count of fetch results for [CNContactStore groupsMatchingPredicate:nil error:] -
getAllGroups
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:nil error:] -
getAllGroupsInSource
Deprecated.Deprecated in iOS 9.0. use [CNContactStore groupsMatchingPredicate:[CNGroup predicateForGroupsInContainerWithIdentifier:] error:]
-