From Bright Pattern Documentation
< 5.2:Desktop-integration-api-net-version-tutorial
Revision as of 04:31, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
Agent State
Whenever the agent state changes, the following event will be emitted:
- public event StateChangedCallback stateChangedCallback;
The UserState object from the callback provides information about the current agent state and the next agent state.
The following methods are used to set the agent state:
- For the Ready state,
- public ResultCode setReady();
- For the Not Ready state with optional indication of the reason (the list of configured Not Ready reasons can be obtained in AgentPlace.notReadyReasons after a successful login),
- public ResultCode setNotReady(string reason);