triggerAction
public final static Unit triggerAction(ChatThreadEventHandler $self, Action action, ChatThreadEventHandler.OnEventSentListener listener, ChatThreadEventHandler.OnEventErrorListener errorListener)
public final static Unit triggerAction(ChatThreadEventHandler $self, Action action, ChatThreadEventHandler.OnEventSentListener listener)
Triggers an action event based on the provided Action.
Parameters
action
An instance of Action that defines the event to be triggered. Only supported actions will be processed, others will result in an error. Supported actions include:
listener
An optional listener to be notified when the event is sent.
errorListener
An optional listener to be notified if an error occurs while sending