@Deprecated public class ABAddressBook extends CFType
Constructor and Description |
---|
ABAddressBook(Map<String,? extends Object> options,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
Constructs a new ABAddressBook object using the specified options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRecord(ABRecord record,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
Adds the specified record to the address book.
|
List |
copyArrayOfAllGroups()
Deprecated.
Returns a list of all the groups of this address book.
|
List |
copyArrayOfAllGroupsInSource(ABRecord source)
Deprecated.
Returns a list of all the groups of the specified address book.
|
List |
copyArrayOfAllPeople()
Deprecated.
Returns a list with all the records of the address book.
|
List |
copyArrayOfAllPeopleInSource(ABRecord source)
Deprecated.
Returns a list that contains all person records from this address book.
|
List |
copyArrayOfAllPeopleInSourceWithSortOrdering(ABRecord source,
long sortOrdering)
Deprecated.
Returns a sorted list of the all the records of the specified address
book using the specified order.
|
List |
copyArrayOfAllSources()
Deprecated.
Returns a list that contains all the sources of the address book.
|
ABRecord |
copyDefaultSource()
Deprecated.
Returns the default addressbook source.
|
static String |
copyLocalizedLabel(String label)
Deprecated.
Returns the local version of the specified record label.
|
List |
copyPeopleWithName(String name)
Deprecated.
Returns a list with all the records that contain the specified name as a
prefix.
|
static int |
getAuthorizationStatus()
Deprecated.
Returns the authorization status of the application for the address book.
|
long |
getGroupCount()
Deprecated.
Returns the number of groups of this address book.
|
ABRecord |
getGroupWithRecordID(int recordID)
Deprecated.
Returns the group of the specified id.
|
long |
getPersonCount()
Deprecated.
Returns the number of records stored in the address book.
|
ABRecord |
getPersonWithRecordID(int recordID)
Deprecated.
Returns the record of a person that corresponds to the specified id.
|
ABRecord |
getSourceWithRecordID(int sourceID)
Deprecated.
Returns the record of the address book for the specified id.
|
boolean |
hasUnsavedChanges()
Deprecated.
Returns a Boolean that shows whether the address book has unsaved
changes.
|
boolean |
removeRecord(ABRecord record,
crossmobile.rt.StrongReference<NSError> error)
Deprecated.
Removes the specified record from the address book.
|
void |
requestAccessWithCompletion(ABAddressBookRequestAccessCompletionHandler completion)
Deprecated.
Requests access to address book from the user.
|
void |
revert()
Deprecated.
Discards any unsaved changes of the address book.
|
boolean |
save(crossmobile.rt.StrongReference<NSError> error)
Deprecated.
Saves any unsaved changes in the address book.
|
public ABAddressBook(Map<String,? extends Object> options, crossmobile.rt.StrongReference<NSError> error)
options
- The options used for the creation of the new object.error
- The error that occurs in case of failure.public static int getAuthorizationStatus()
public static String copyLocalizedLabel(String label)
label
- The label for which the local version is requested.public void requestAccessWithCompletion(ABAddressBookRequestAccessCompletionHandler completion)
completion
- The handler that is called for the specified operation.public boolean save(crossmobile.rt.StrongReference<NSError> error)
error
- The error that occurs in case of failure.public boolean hasUnsavedChanges()
public boolean addRecord(ABRecord record, crossmobile.rt.StrongReference<NSError> error)
record
- The record that is added to the address book.error
- The error that occurs in case of failure.public boolean removeRecord(ABRecord record, crossmobile.rt.StrongReference<NSError> error)
record
- The record that is being removed from the address book.error
- The error that occurs in case of failure.public void revert()
public ABRecord getGroupWithRecordID(int recordID)
recordID
- The id for which the group is requested.public long getGroupCount()
public List copyArrayOfAllGroups()
public List copyArrayOfAllGroupsInSource(ABRecord source)
source
- The address book for which the groups are requested.public long getPersonCount()
public ABRecord getPersonWithRecordID(int recordID)
recordID
- The id of the record that is requested.public List copyArrayOfAllPeople()
public List copyArrayOfAllPeopleInSource(ABRecord source)
source
- The address book whose person records are returned.public List copyArrayOfAllPeopleInSourceWithSortOrdering(ABRecord source, long sortOrdering)
source
- The address book that is used as a source.sortOrdering
- The order to which the records are sorted.public List copyPeopleWithName(String name)
name
- The prefix which is used for searching the records.public ABRecord copyDefaultSource()
public ABRecord getSourceWithRecordID(int sourceID)
sourceID
- The id of the record that is requested.public List copyArrayOfAllSources()
Copyright © 2020. All rights reserved.