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.

NameTypeDescription
valuebooleanSet value to true to show the softphone or set value to false to hide the softphone.
callbackfunctionJavaScript method executed when the API method call is completed.
NameTypeDescription
resultbooleantrue if showing or hiding the softphone succeeded, false if showing or hiding the softphone didn’t succeed.
errorstringIf the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.