Contact

Prompts the user to pick a contact from the list of favorite contacts. The selected contact will be returned. If the contact picker is cancelled by the user, any callbacks set by DevKit modules will not be called.

const contactCallback = (contact: ContactData, timestamp?: Date) => {
    console.log(contact, timestamp);
};

COBI.app.contact.read(contactCallback);
Example Response
{
    "phone": "+123456789",
    "email": "test@example.com",
    "url": "https://example.com"
}

Last updated