OnReceiveMessageWrapperListener

Listener for receiving messages. Note: Switch threads to handle time-consuming operations.

This interface can replace 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.

Inheritors

Constructors

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.
public abstract boolean onReceived(Message message, int left, boolean hasPackage, boolean offline)
Receives real-time or offline messages.