This library provides access to mobile contacts to add,
delete, modify, and find contacts.
Record
ContactFindOption includes options for finding contacts.
- filter String?
- The string to search.
- multiple boolean?
- Specifies if all results or only the first result is returned.
- desiredFields String[]
- Specifies the contact fields to be returned.
- Functions
- find (fields String[] in, onSuccess ContactsSuccess in, onError
CordovaErrorHandler in, contactsOptions ContactFindOption in)
- Makes a query of the device contacts database and returns to the onSuccess callback
function.
- onSuccess
- The success callback of type ContactsSuccess,
with the result contact array passed in.
delegate ContactsSuccess(contact Contact[] in) end
- onError
- The error callback function.
- contactsOptions
- Specifies the options to query contact database.
- pickContact (onSuccess ContactSuccess in, onError CordovaErrorHandler
in)
- Launches the Contact Picker to select a single contact.
- onSuccess
- The success callback. The result contact is passed in.
- onError
- The error callback function.