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...") |
(No difference)
|
Revision as of 14:00, 16 September 2022
• 5.19
<translate>
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)
</translate>