Newer Version Available

This content describes an older version of this product. View Latest

lightning:omniChannelLogout

Indicates that an agent has logged out of Omni-Channel.

Response

None

Example

This example prints a line to the browser’s developer console when an Omni-Channel user logs out of Omni-Channel.

Component code:

1<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
2    <lightning:omniToolkitAPI aura:id="omniToolkit" />  
3    <aura:handler event="lightning:omniChannelLogout" action="{! c.onLogout }"/>
4</aura:component>

Controller code:

1({
2    onLogout : function(component, event, helper) {
3        console.log("Logout success.");
4    }, 
5})