-
Notifications
You must be signed in to change notification settings - Fork 421
CAAddressManager
Address book class that is used to obtain device’s address book info.
CAObject
Access modifier |
Method name |
Description |
public |
shareAddressManager |
Obtain singleton |
public |
getAddressBook |
Obtain address book |
|
releaseJson |
Analyze json data |
static CAAddressManager *shareAddressManager()
Return value: CAAddressManager *
Description: return address book class’s singleton object
std::vectorgetAddressBook()
Return value: vector
Description: obtain address book info, we can obtain device’s address book of different platforms only by using this interface.
void releaseJson(const char json)*
Return value: void
Parameter: const char* json
Description: analyze address book info that are obtained from different platforms.
Obtaining address book example:
1 2 |
std::vector info; info=CAAddressManager::shareAddressManager()->getAddressBook(); |
This is the called method, it will return a CAAddressBookRecord* type vector, CAAddressBookRecord is used to identify an address book info class, and we can obtain every CAAddressBookRecord object’s attribute which contains the basic info of each address book.