From Bright Pattern Documentation
(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...") |
(No difference)
|
Revision as of 13:42, 16 September 2022
• 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>