OnReceiveMessageWrapperListener

Listener for receiving messages.

This interface can replace IRongCoreListener.OnReceiveMessageListener to address the issue of frequent UI refreshes when receiving a large number of messages. The interface returns the `left` and `hasPackage` parameters, which can be used together to determine when all offline messages have been fetched.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public boolean onReceived(Message message, int left, boolean hasPackage, boolean offline)
Receives real-time or offline messages.
Link copied to clipboard
public abstract void onReceivedMessage(Message message, ReceivedProfile profile)
Receives real-time or offline messages.

Inherited functions

Link copied to clipboard
Offline message reception completed.
Link copied to clipboard
public boolean onReceived(Message message, ReceivedProfile profile)

public final boolean onReceived(Message message, int left)
Handles received messages.