# 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.

{% tabs %}
{% tab title="Typescript" %}

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

COBI.app.contact.read(contactCallback);
```

{% content-ref url="../../entities/contactdata" %}
[contactdata](https://sryvkver.gitbook.io/cobi.bike/entities/contactdata)
{% endcontent-ref %}
{% endtab %}

{% tab title="Javascript" %}

```javascript
const contactCallback = (contact, timestamp) => {
    console.log(contact, timestamp);
};

COBI.app.contact.read(contactCallback);
```

{% endtab %}
{% endtabs %}

<details>

<summary>Example Response</summary>

```json
{
    "phone": "+123456789",
    "email": "test@example.com",
    "url": "https://example.com"
}
```

</details>
