mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-04 00:02:03 +08:00
Changed search function to take filter and option parameters
This commit is contained in:
@@ -101,11 +101,10 @@
|
||||
|
||||
function get_contacts()
|
||||
{
|
||||
var obj = new Contact();
|
||||
var name = new ContactName();
|
||||
name.givenName = '';
|
||||
obj.name = name;
|
||||
navigator.service.contacts.find(obj, count_contacts, fail);
|
||||
var obj = new ContactFindOptions();
|
||||
obj.filter="";
|
||||
obj.multiple=true;
|
||||
navigator.service.contacts.find(["name", "phone", "email"], count_contacts, fail, obj);
|
||||
}
|
||||
|
||||
function count_contacts(contacts)
|
||||
|
||||
Reference in New Issue
Block a user