Capabilities

pickContact

Updated:

Launches the Android or iOS contact picker.

pickContact is only supported inside the Q2 mobile banking app. It is not available in the mobile browser or desktop browser.

Description

pickContact launches the Android or iOS contact picker and returns the name, emails, and phone numbers of the selected contact record.

Signature

tecton.sources.pickContact(): Promise<ContactRecord>;
export interface ContactRecord {
    email: string[];
    name: string;
    phone: string[];
}

Usage

Launch the contact picker and populate form fields with the selected contact.

tecton.sources.pickContact().then((data) => {
    document.querySelector('#recipient-name').value = data.name;
    document.querySelector('#recipient-phone').value = data.phone[0];
    document.querySelector('#recipient-email').value = data.email[0];
});

Platform Support

iOS
Android

Changelog

The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.

Show changelog (0)