Options
All
  • Public
  • Public/Protected
  • All
Menu

The ChatController class is a managing class to control the in-meeting chat related functions and states in an active meeting.

Hierarchy

  • ChatEventEmitter
    • ChatController

Index

Constructors

Events

Methods

  • Gets the current chat privilege.

    Returns ChatPrivilege

    The current chat privilege

  • Removes the specified listener from the listener array for the event named eventName.

    Parameters

    Returns void

  • Adds a one-time listener function for the event named eventName. The next time eventName is triggered, this listener is removed and then invoked.

    Parameters

    Returns void

  • Send a chat message to all meeting users in an active meeting.

    description

    A successful call of sendMessageToAll triggers the ChatEvent.CHAT_MESSAGE_RECEIVED event callback for the local and remote users.

    Parameters

    • msg: string

      The chat message to be sent

    Returns Promise<ErrorCodeType>

    0 means the API call is valid or fails otherwise

  • Sends a chat message to a specific meeting user in an active meeting.

    description

    A successful call of sendMessageToUser triggers the ChatEvent.CHAT_MESSAGE_RECEIVED event callback for the local and remote users.

    Parameters

    • uid: any

      The unique id of the specific meeting user

    • msg: any

      The chat message to be sent

    Returns Promise<ErrorCodeType>

    0 means the API call is valid or fails otherwise

  • Sets the meeting chat privilege.

    Parameters

    Returns Promise<ErrorCodeType>

    0 means the API call is valid or fails otherwise