contactSuccess

Success callback function that provides the [Contact](../Contact/contact.html) array resulting from a [contacts.find](../contacts.find.html) operation.

function(contacts) {
    // Do something
}

Parameters

  • contacts: The contact array resulting from a find operation. (Contact)

Example

function contactSuccess(contacts) {
    for (var i=0; i<contacts.length; i++) {
        console.log("Display Name = " + contacts[i].displayName);
    }
}