From Bright Pattern Documentation
Jump to: navigation, search
Created page with "<translate> =onLogout= This handler will be invoked when an agent logs out of the Agent Desktop application. ==Request== ''Syntax'' {| class="wikitable" |on('ON_LOGOUT', ha..."
 
Updated via BpDeleteTranslateTags script
 
Line 1: Line 1:
<translate>
 
=onLogout=
=onLogout=


Line 31: Line 31:


(None)
(None)
</translate>

Latest revision as of 04:01, 29 May 2024

onLogout

This handler will be invoked when an agent logs out of the Agent Desktop application.

Request

Syntax

on('ON_LOGOUT', handler: OnLogoutHandler): void


type OnLogoutHandler = () => void

Parameters

(None)

Example

function logoutCallback(data: LoginStateData) {

console.log("User has been logged out!");

}

adApi.on("ON_LOGOUT", logoutCallback);

Return Value

(None)

< Previous | Next >