From Bright Pattern Documentation
Jump to: navigation, search
• 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 >