Contact Editor is a native extension that provides access to the address book. It works on iOS and Android devices and allows you to read contact information (name, phones, emails, etc) as well as interacting with the system contact features. You can, for instance, show the native contact picker dialog.
Some features:
- (iOS only) setContactImage – sets new image used as contact photo
- (iOS only) getContactBitmapData – returns bitmap data of image used as contact photo
- (iOS only) addContactInWindow – shows native window for adding new contact
- (iOS only) showContactDetailsInWindow – shows native window for viewing contact details. If ‘isEditable’ parameter is set to true, enables editing of contact details.
- pickContact – shows system contact picker, that enables user to select desired contact from list. After selecting the picker is dismissed, and the selected recordId is sent using ContactEditorEvent.CONTACT_SELECTED
- getContactCount – gets the number of contacts in AddressBook
- getContacts – gets contacts from AddressBook (name, lastname, compositename, phones, emails, recordid, birthdate, (NEW) addresses)
- addcontact – adds contact to AddressBook
- removeContact – removes contact with specified recordId
- isSupported – returns if ane is supported on current platform
- getContactsSimple – gets contacts from AddressBook(compositename, recordid), shoud be faster than getContacts, because it requires less processing.
- getContactDetails – gets details for specified contact
Sample
public function addContact(name:String,lastname:String="",phone:String="",company:String="",email:String="",website:String=""):void public function getContacts():Array public function pickContact(type:String=null):void public function setContactImage(bitmapData:BitmapData,recordId:int):void public function getContactBitmapData(recordId:int):BitmapData public function addContactInWindow():void public function showContactDetailsInWindow(recordId:int,isEditable:Boolean=false):void public function canclePickContact():void public function getContactsSimple():Array public function getContactDetails(recordId:int):Object public function dispose():void{ public function getContactCount():int public function removeContact(recordId:int):Boolean public static function get isSupported():Boolean
Nice!!! RT @as3gamegears New: ContactEditor (native extension to access the address book) http://t.co/KT6kOrVr #as3 #flash #gamedev
RT @SniperZN http://t.co/8gzySxmi #as3 #flash #gamedev: Nice!!! RT @as3gamegears New: ContactEditor (native ext… http://t.co/TDtcU1Ie
RT @as3gamegears http://t.co/8gzySxmi #as3 #flash #gamedev: New: ContactEditor (native extension to access the … http://t.co/uM5oz9Y2
“@as3gamegears: New: ContactEditor (native extension to access the address book) http://t.co/vn5VmPHt #as3 #flash #gamedevâ€
RT @swfgeek http://t.co/8gzySxmi #as3 #flash #gamedevâ€: “@as3gamegears: New: ContactEditor (native extension to… http://t.co/fFBluSKM
Does this native extension “phone home”?
I’m willing to pay for ANE’s, but not if they communicate from the final version of the app.