setSoftphonePanelIcon() for Lightning Experience

Sets the icon for the softphone panel. Returns true if the function is successfully executed, and false when there is a failure. This method is available in API version 38.0 or later.

The softphone panel icon.

Screen shot of softphone in utility bar.

NameTypeDescription
keystringThe key corresponding to the icon in the Lightning Design System you want to use for the softphone panel icon.
callbackfunctionJavaScript method executed when the API method call is completed.
");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"96ZND-LJLSH-JXHC9-F8GQP-6WCGS";var o=document.currentScript||document.getElementsByTagName("script")[0],i=!1,r=document.createElement("link");if(r.relList&&"function"==typeof r.relList.supports&&r.relList.supports("preload")&&"as"in r)window.BOOMR.snippetMethod="p",r.href=window.BOOMR.url,r.rel="preload",r.as="script",r.addEventListener("load",e),r.addEventListener("error",function(){t(!0)}),setTimeout(function(){if(!i)t(!0)},3e3),BOOMR_lstart=(new Date).getTime(),o.parentNode.appendChild(r);else t(!1);if(window.addEventListener)window.addEventListener("load",a,!1);else if(window.attachEvent)window.attachEvent("onload",a)}}(),"".length>0)if(e&&"performance"in e&&e.performance&&"function"==typeof e.performance.setResourceTimingBufferSize)e.performance.setResourceTimingBufferSize();!function(){if(BOOMR=e.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var n=""=="true"?1:0,t="",a="3be5qrixij72u2ronafq-f-3a57c73e1-clientnsv4-s.akamaihd.net",o="false"=="true"?2:1,i={"ak.v":"41","ak.cp":"1836958","ak.ai":parseInt("1224868",10),"ak.ol":"0","ak.cr":8,"ak.ipv":4,"ak.proto":"h2","ak.rid":"1d91b11","ak.r":42223,"ak.a2":n,"ak.m":"dsca","ak.n":"essl","ak.cport":60083,"ak.gh":"23.66.124.170","ak.quicv":"","ak.tlsv":"tls1.3","ak.0rtt":"","ak.0rtt.ed":"","ak.csrc":"-","ak.acc":"","ak.t":"1781426187","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==TrDcXN6CGnU4+ncBoaRIEQFqU5n3UgJu2P6D/yW46HjNofwo5NGVNfJBilVWD3/u/b2rH/F2+q2Wf2+ffor0dU/B5jqE+NULdRjBZ+Zn76QCBWFLQsHthkGdn9vk6Ded5IK9fyr3fheZF5PBtizPXSNpN8K+xNUj+0gPjarogbw064oWpCwcJrGaROTbIJ2KycG92n203XJrmwCuEsdIOgJhQ1bmtj5GY83FDNHI41p9jVFYgXeT1ustv+POQgM/Z7se1aAP0T97pkyzIWpZWBI/awkyLaAV5LbaJDhUmoNAZ7v/b1HpwJo68PClgy1B7quYSTNsMl3hfjBvzHNNgvY6eXwxozIoZHJtsClBaBYSytp3T5MWdtWg3WKDUe/lQno6BjLc3A52u3dS7bxNQlDvFQ2c/PHosmJJe4jauSA=","ak.pv":"87","ak.dpoabenc":"","ak.tf":o};if(""!==t)i["ak.ruds"]=t;var r={i:!1,av:function(n){var t="http.initiator";if(n&&(!n[t]||"spa_hard"===n[t]))i["ak.feo"]=void 0!==e.aFeoApplied?1:0,BOOMR.addVar(i)},rv:function(){var e=["ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.0rtt.ed","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(e)}};BOOMR.plugins.AK={akVars:i,akDNSPreFetchDomain:a,init:function(){if(!r.i){var e=BOOMR.subscribe;e("before_beacon",r.av,null,null),e("onbeacon",r.rv,null,null),r.i=!0}return this},is_complete:function(){return!0}}}}()}(window); ">

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.
returnValueobjectThis API method doesn’t return this object. The returnValue is always null.
errorsarrayIf the API call was successful, this variable is null. If the API call failed, this variable returns an array of error messages.