mobileAddContact | |||||||
Type | command | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Allows the user to add a contact to the contact list. | ||||||
Introduced | 5.5.1 | ||||||
OS | ios, android | ||||||
Platforms | mobile | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: mobilePickDate, mobileRemoveContact, mobilePickMedia, mobilePickContact, mobileShowContact, mobilePick, mobileFindContact, mobileCreateContact Function: mobileGetContactData | ||||||
Description | Allows the user to create a contact in the contact list, based on some existing contact information. The contact information is collected in a nested array structure as follows: Person Information - The personal information of the contact is stored at the top level of the array and has the following keys:
E-Mail Addresses - The e-mail addresses of the contact are stored in
integer indexed arrays starting at one under the key email. This allows any
number of e-mail addresses to be stored against a particular category. There
are three categories of e-mail address:
- "home": - The home e-mail address. Telephone Numbers - The telephone numbers of the contact are stored in
integer indexed arrays starting at one under the key phone. This allows
any number of telephone numbers to be stored against a particular
category. There are ten categories of phone numbers:
- "mobile" - The mobile telephone number. Address - Addresses of the contact are stored as sub arrays under the
key address. There are three categories of address:
- "home" - The home address. Address Subkey - Each address category is an integer indexed array,
starting at one under the key address. This allows any number of
addresses to be stored against a particular category. There are six
categories of address subkey:
- "street" - The address street. Use the mobileAddContact command to add a contact to the contact list. Use the mobileGetContactData function to retreive contact |