From Bright Pattern Documentation
(Created page with "<translate> =onLogin= This handler will be invoked when an agent logs into the Agent Desktop application. ==Request== ''Syntax'' {| class="wikitable" |on('ON_LOGIN', handle...") |
(Updated via BpDeleteTranslateTags script) |
||
Line 1: | Line 1: | ||
− | + | ||
=onLogin= | =onLogin= | ||
Line 79: | Line 79: | ||
(None) | (None) | ||
− | |||
− | |||
− |
Latest revision as of 04:01, 29 May 2024
• 5.19
onLogin
This handler will be invoked when an agent logs into the Agent Desktop application.
Request
Syntax
on('ON_LOGIN', handler: OnLoginHandler): void
isLoggedIn: boolean agentId?: string username?: string sessionId?: string } |
Parameters
Parameter | Parameter Values | Data Type | Optional/Required | Description |
loginState | ||||
isLoggedIn | Boolean | Required | Always true | |
agentId | String | Optional | ID of the logged in agent | |
username | String | Optional | Username of the logged in agent | |
sessionId | String | Optional | ID of the current login session |
Example
function loginCallback(data: LoginStateData) {
// ...
}
adApi.on("ON_LOGIN", loginCallback);
Return Value
(None)