From Bright Pattern Documentation
(Created page with "<translate> =onPhoneCapabilitiesChange= Subscribe to any change of the allowed phone capabilities. ==Request== ''Syntax'' {| class="wikitable" |on('ON_PHONE_CAPABILITIES_CH...") |
(Updated via BpDeleteTranslateTags script) |
||
Line 1: | Line 1: | ||
− | + | ||
=onPhoneCapabilitiesChange= | =onPhoneCapabilitiesChange= | ||
Line 79: | Line 79: | ||
null | null | ||
− | |||
− | |||
− | |||
− |
Latest revision as of 04:01, 29 May 2024
• 5.19
onPhoneCapabilitiesChange
Subscribe to any change of the allowed phone capabilities.
Request
Syntax
on('ON_PHONE_CAPABILITIES_CHANGE', handler: OnPhoneCapabilitiesChangeHandler): void
canDial: boolean canAnswer: boolean canHold: boolean canRetrieve: boolean } |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
caps | ||||
canDial | Boolean | Required | If set to true, the user can dial; if set to false, the user cannot dial. | |
canAnswer | Boolean | Required | If set to true, the user can answer incoming phone calls; if set to false, the user cannot answer incoming phone calls. | |
canHold | Boolean | Required | If set to true, the user can pause calls; if set to false, the user cannot pause calls. | |
canRetrieve | Boolean | Required | If set to true, the user can resume calls after they have been put on hold; if set to false, the user cannot resume calls after they have been put on hold. |
Example Request
function phoneCapabilitiesChangeCallback(caps: PhoneCapabilities) {
console.log("New phone capabilities:", caps);
}
adApi.on("ON_PHONE_CAPABILITIES_CHANGE", phoneCapabilitiesChangeCallback);
Return Value
null