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...")
 
(No difference)

Latest revision as of 14:01, 16 September 2022

• 5.19

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 >