Feedback

  • Contents
 

User.statusChangeHandler Callback Property

Definition

User.statusChangeHandler is invoked when the agent's status changes. This method is called when the user's status changes. If you pass the name of a user-defined function to User.statusChangeHandler, the function will be called when this event occurs.

Usage

Read Yes

Write Yes

Compatibility

This callback is compatible with scripts for Scripter .NET Client or Interaction Connect.

Syntax

User.statusChangeHandler(newStatus, untilDateTime)

Parameters

newStatus

The user's status after it changes.

untilDateTime

The date and/or time that the user will return, if set.

Value Assigned

Function Pointer

A function pointer is the address in memory where a user-defined function is loaded. Function pointers pass the address of a user-defined function to another function declared within an application. In a script, the function pointer is simply the name of the function. For example, if your code contains a function named "foo", the function pointer would also be named "foo". When defining your custom function, define newStatus, and untilDateTime as parameters. e.g.: function foo(newStatus, untilDateTime).

Value Returned

Function Pointer