setOnReceiveMessageListener

Deprecated

Sets the listener for receiving message events. Note: It is recommended to set a global listener for the application lifecycle.

Since

5.0.0

Deprecated

This interface has been deprecated. Please use addOnReceiveMessageListener instead.

Parameters

listener

The listener for receiving messages.