From Bright Pattern Documentation
Jump to: navigation, search
(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...")
 
(Updated via BpDeleteTranslateTags script)
 
Line 1: Line 1:
<translate>
+
 
  
 
=getPhoneDevice=
 
=getPhoneDevice=
Line 36: Line 36:
  
 
This method returns the list of available ''PhoneDevice'' types (i.e., as defined in the method ''getPhoneDevicesList'') and its corresponding phone number.
 
This method returns the list of available ''PhoneDevice'' types (i.e., as defined in the method ''getPhoneDevicesList'') and its corresponding phone number.
 
</translate>
 

Latest revision as of 04:01, 29 May 2024

• 5.19


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.

< Previous | Next >