setVisible() for Salesforce Classic
Shows or hides the softphone in the Salesforce console.
If this method is used in a Salesforce console where multi-monitor components is turned on, an error will be returned.
| Name | Type | Description |
|---|---|---|
value | boolean | Set value to true to show the softphone or set value to false to hide the softphone. |
callback | function | JavaScript method executed when the API method call is completed. |
| Name | Type | Description |
|---|---|---|
result | boolean | true if showing or hiding the softphone succeeded, false if showing or hiding the softphone didn’t succeed. |
error | string | If the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message. |