ContactManager.getAllContacts

Syntax

navigator.ContactManager.getAllContacts(win, fail, options)

Arguments

winFunction

failFunction

optionsObject

Example

navigator.ContactManager.getAllContacts(countContacts, fail);

var countContacts(contacts)
{
  alert(contacts.length);
}

Contact Object

Code

var Contact = function() {
  this.name = ""
  this.phones = {};
  this.email = {};
}

Contacts

Code

var Contact = function() {
  this.name = ""
  this.phones = {};
  this.email = {};
}