Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Access the AddressBook without the UI — Gideros Forum

Access the AddressBook without the UI

OZAppsOZApps Guru
edited November 2013 in Plugins
My focus has generally been business apps and thereby most of my experimental videos are based around business-y requirements than game requirements. In the latest quest, I have wrapped the AddressBook (only for iOS) and might make that available for use as a Plug-in. Just wanted to know, how important is it for the users here on this forum? (I think there are not many takers)

Here's a peek into the lua part of things
 local addr = require "AddressBook"
 
 local addressBook = addr.getAddressBook() -- return the AddressBook as a table
  --[[ The table contains the following members
      id              --> use this when trying to delete a record
      name        --> The first name of the contact
      surname   --> The lastname of the contact
      email        --> The email address of the contact
      mobile, home, work, iPhone --> the different phone numbers that might be present
  --]]
 
 local tblRec = {fName = "Jayant", lName = "Varma", phone = "123456", email = "jayant@email.com"}
 addr.createAddressBookEntry(tblRec) -- creates a new record in the AddressBook (does not check for duplicates as yet)
  -- Need to standardize it with the field names returned from the addressBook, like name and surname
 
  addr.deleteContact(theRecID) -- delete's the record from the AddressBook
  -- Uses the ID as returned by the getAddressBook function above
This would be a paid plug-in, which is still better than paying the Enterprise (meaning very high) fees for this functionality on another framework.

and a video to see how it performs

twitter: @ozapps | http://www.oz-apps.com | http://howto.oz-apps.com | http://reviewme.oz-apps.com
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Sign In or Register to comment.