getContacts Method

This method pulls the latest contacts from the device into local memory



This method is called to pull a version of the device contact database locally. Use this method first to have a local copy of contact data to access using the getContactList or getContactData methods so those methods won't be reading an uninitialized cache. It fires an event to signify when the local list has been synced up with the device database.

Available Platforms:


  • intel.xdk.contacts.get: This event is fired when the device's local contact list has been fully retrieved/refreshed from the device contact database.


document.addEventListener('intel.xdk.contacts.get', contactsReceived, false);

Para obtener información más completa sobre las optimizaciones del compilador, consulte nuestro Aviso de optimización.