isSoftphonePanelVisible() for Lightning Experience

Use this method to return the visibility status of the softphone panel. Returns true if the softphone panel is visible and false if it’s minimized. This method is available in API version 38.0 or later.

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
successbooleanReturns true if the API method call was invoked successfully, false otherwise.
returnValueobjectContains the boolean property visible which indicates the visibility status of the softphone panel. It’s true if the softphone is visible and false if it’s minimized.
errorsarrayIf the API call was successful, this variable is null. If the API call failed, this variable returns an array of error messages.