Last updated 1 year ago
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);
const contactCallback = (contact, timestamp) => { console.log(contact, timestamp); }; COBI.app.contact.read(contactCallback);
{ "phone": "+123456789", "email": "test@example.com", "url": "https://example.com" }