newContact (iOS)

Lets the user input contact information to create a new entry in the contact database of the mobile device.

Syntax

ui.Interface.frontCall("ios", "newContact",
  [defaults],[vcard])

Usage

The iOS "newContact" front call opens the contact input form on the mobile device, with default values passed in the vCard structure of the first parameter, lets the user enter contact information.

Important: This front call is only available for an application running on an iOS device.

If the contact creation is validated, the front call returns the completed vCard string. If the contact import is canceled, the front-end returns NULL.

Example

DEFINE defaults, vcard STRING
LET defaults="BEGIN:VCARD\n"
      ||"VERSION:3.0\n"
      ||"N:Willi;;;;\n"
      ||"TEL;type=HOME;type=VOICE;type=pref:03812225610\n"
      ||"END:VCARD\n"
CALL ui.interface.frontcall("ios","newContact",[defaults],[vcard])