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.
| Name | Type | Description |
|---|---|---|
callback | function | JavaScript 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.
| Name | Type | Description |
|---|---|---|
result | boolean | true if the softphone was in the Salesforce console, false if the softphone wasn’t in the Salesforce console. |
error | string | If the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message. |