Functions of Titanium.Contacts
Can anyone provide me with a list of functions from the Contacts class.
Right now I only know:
- Titanium.Contacts.getAllContacts()
- Titanium.Contacts.createContact()
Is there anymore?
2 Answers
-
Take a look here at the source code, you should find more :)
http://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/ContactsModule.m
-
This is the best docs I found for the contacts sofar:
https://appcelerator.lighthouseapp.com/projects/32238/tickets/176
However, there are some issues. The ones I know of:- setting details to phone, crashes when selecting the non-first number for a contact.
- Organisation isn't readable.
- phone is phone[0].value, not phonenumber.
This is just for selecting 1 contact, haven't tried the other calls. See also my other thread on contacts:
https://developer.appcelerator.com/question/20051/docs-for-contacts-api