Skip to main content

setBatchMsgListener

Feature Introduction

Note

Set a batch message event listener. For batch push of new messages, it is recommended to use this.

Attention
  1. Call immediately after initSDK.
  2. Can only be called once.
  3. After setting, the onRecvNewMessage and onRecvOfflineNewMessage callbacks in advancedMsgListener will no longer be triggered.
Attention

After successful initialization, it is automatically set. The callback will be transmitted to the client through globalEvent. For message event details, see.