Conversation
Represents a CCAI conversation instance.
Constructors
constructor
Parameters
settings:
Methods
addEventListener
addEventListener(event: , callback: Function
): void
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
removeEventListener(event: , callback: Function
): void
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
removeParticipant(participant: ): void
Removes a participant from the conversation.
Parameters
participant:
Returns
type:
void