Hi, I tried to access and select multiple contacts from address book, i can able to select single contact form address using the below code. i want to select multiple contacts from address book.
Source Code:
button.addEventListener('click', function(e) { //button contact Ti.Contacts.showContacts({ cancel: function(c){ Ti.API.info('*** Section cancelled: '+JSON.stringify(c)+' '); }, selectedPerson : function(e) { Ti.API.info(' Obtained Value: '+JSON.stringify(e)+' ***'); label2.text = e.person.phone.home[0]; } }); }); win2.add(button);
Anyone please explain?