Conversation
Represents a CCAI conversation instance.
Constructors
constructor
Parameters
settings:
Methods
addEventListener
void
addEventListener( event, Function
callback)Adds a handler for the specified CCAI.Events.Conversation event. Use only functions as handlers; anything except a function leads to an error and scenario termination when a handler is called.
Parameters
event:
Event class (i.e., CCAI.Events.Conversation.Created)
callback:
Function
Handler function. A single parameter is passed - object with event information
Returns
type:
void
addParticipant
addParticipant( settings)Adds a participant to the conversation.
Parameters
settings:
Returns
type:
removeEventListener
void
removeEventListener( event, Function
callback)Removes a handler for the specified CCAI.Events.Conversation event.
Parameters
event:
Event class (i.e., CCAI.Events.Conversation.Created)
callback:
Function
OptionalOptional. Handler function. If not specified, all handler functions are removed
Returns
type:
void
removeParticipant
void
removeParticipant( participant)Removes a participant from the conversation.
Parameters
participant:
Returns
type:
void