ContactCardScreen

From Pointui

Inherits Screen.

* NOT AVAILABLE IN FREE VERSION OF HOME

Displays the Home Contact Card screen for a specified contact. This screen provides details about a contact including your communication history with them and buttons to contact them on the various methods available.

Contents

Events

void OnStartVideoCall(String number)

Raised when the user clicks the button to initiate a video call. See SetVideoCallsEnabled below. You must initiate the video call from within this event, otherwise the video call button will do nothing when the user presses it. Some devices can initiate video calling by calling an exe with command line parameters, others are more complex.

Methods

void SetVideoCallsEnabled(bool enabled)

Sets whether a contact button is provided for video call if the contact has a mobile phone number. This must be called before SetContact to take effect. Given that the method for invoking a video call can differ between devices, you must then handle the OnStartVideoCall event to specify what should happen if the user clicks the video call button.

void SetContact(int objectID)

Sets which contact the card screen will be displayed for. This should be called immediately after the screen has been declared as in the example below.

EXAMPLE

//find a contact to work with
Contact contact;
Contacts.FindNearest(“info@pointui.com”, “Email”, contact);
 
//get the unique id for the contact
int oid;
contact.GetValue(“ObjectID”, oid);
 
//show the contact card screen
ContactCardScreen s;
s.SetContact(oid);
FlowStack.Branch(s);

AVAILABLE SINCE: 2.1

int GetContactID()

Returns the id of the contact currently assigned to the screen.