Skip to main content
Table of Contents

TTMSFNCCloudWhatsApp.CreateContact Method

Creates a contact card with basic name, phone, and email values.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudWhatsApp Inherited from: TTMSFNCCloudCustomWhatsApp

Syntax

FMX.TMSFNCCloudWhatsApp.hppPascalC++
function CreateContact(AFirstName, ALastName: String; ANumber: String = ''; AEmail: String = ''): TTMSFNCCloudWhatsAppContact; overload;
TTMSFNCCloudWhatsAppContact* __fastcall CreateContact(System::UnicodeString AFirstName, System::UnicodeString ALastName, System::UnicodeString ANumber = System::UnicodeString(), System::UnicodeString AEmail = System::UnicodeString())/* overload */;

Parameters

Name Description
AFirstName First name for the contact.
ALastName Last name for the contact.
ANumber Optional phone number to add to the contact.
AEmail Optional email address to add to the contact.

Returns

A new contact instance. The caller owns the returned object.