From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 13:42, 16 September 2022 by Katherine (talk | contribs) (Created page with "<translate> =getPhoneDevice= Returns the selected phone device and its phone number (i.e., if it's configurable for this phone device). ==Request== ''Syntax'' {| class="wi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19

<translate>

getPhoneDevice

Returns the selected phone device and its phone number (i.e., if it's configurable for this phone device).

Request

Syntax

getPhoneDevice(): Promise<OperationResult<PhoneDeviceData>>

Where:

type PhoneDeviceData = {

    type: PhoneDevice

    phone?: string

}

Parameters

(None)

Example Request

getPhoneDeviceButton.onclick = () => {

    adApi.getPhoneDevice()

}

Return Value

This method returns the list of available PhoneDevice types (i.e., as defined in the method getPhoneDevicesList) and its corresponding phone number.

</translate>

< Previous | Next >