addOnReceiveMessageListener

public static boolean addOnReceiveMessageListener(OnReceiveMessageWrapperListener listener)

Adds a listener for the message received event. Note: It is recommended to set a global listener for the application lifecycle.

Return

Indicates whether the addition was successful.

Since

5.1.5

Parameters

listener

The listener for receiving messages.