isInConsole() for Salesforce Classic

Indicates if the softphone is in the Salesforce console.

If this method is used in a Salesforce console where multi-monitor components is turned on, any popped out softphone components are indicated as in the console.

NameTypeDescription
callbackfunctionJavaScript method executed when the API method call is completed.

This method is asynchronous. The response is returned in an object passed to a callback method. The response object contains the following fields.

NameTypeDescription
resultbooleantrue if the softphone was in the Salesforce console, false if the softphone wasn’t in the Salesforce console.
errorstringIf the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.