setSoftphoneHeight() for Salesforce Classic

Sets the softphone height in pixels.

If this method is used in a Salesforce console where multi-monitor components is turned on, an error will be returned because resizing multi-monitor component is not allowed.

NameTypeDescription
heightnumberSoftphone height in pixels. The height should be a number that’s equal or greater than 0.
callbackfunctionJavaScript method executed when the API method call is completed.
NameTypeDescription
resultbooleantrue if the height was set successfully, false if setting the height wasn’t successful.
errorstringIf the API call was successful, this variable is undefined. If the API call failed, this variable returns an error message.