Skip to content
9miao Mobile Game edited this page Jul 8, 2014 · 1 revision

CAAddressManager Detailed Description

Class Description

Address book class that is used to obtain device’s address book info.

Base Class

CAObject

Method

Access modifier

Method name

Description

public

shareAddressManager

Obtain singleton

public

getAddressBook

Obtain address book

 

releaseJson

Analyze json data

Method Description

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.

Clone this wiki locally