Class: AddressBook

AddressBook()

Functions to operate with device Address Book.

Constructor

new AddressBook()

Source:

Methods

(static) this.pickContact(onContact, onFailure)

Presents an interface on the device to select a contact from the Address Book and returns its details
Parameters:
Name Type Description
onContact function Callback function called when the user selects contact. The format of the function is: onContact(contact) Available fields: - contact.firstName - contact.lastName - contact.middleName - contact.prefix - contact.suffix - contact.organization - contact.jobTitle - contact.department - contact.note - contact.phone.mobile - contact.phone.iPhone - contact.phone.main - contact.phone.homeFax - contact.phone.workFax - contact.phone.pager - contact.phone.work - contact.phone.home - contact.email.work - contact.email.home - contact.address.work.street - contact.address.work.city - contact.address.work.state - contact.address.work.zip - contact.address.work.country - contact.address.work.countryCode - contact.address.home.street - contact.address.home.city - contact.address.home.state - contact.address.home.zip - contact.address.home.country - contact.address.home.countryCode
onFailure function Failure function. Format: onFailure(errorCode, errorDescription)
Source: