onMessageReceived

最近更新时间:2022-09-20 05:17:40


flutter void RtmChannelListener.onMessageReceived   ({
            RtmMessage  message,
            RtmChannelMember    fromMember 
});

收到频道消息回调。

当远端用户调用 sendMessage 方法成功发送频道消息后,在相同频道的本地用户会收到此回调。

参数

message接收到的频道消息。详见 ARRtmMessage

fromMember频道消息发送者。详见 RtmChannelMember

Implementation

RtmChannelListener.onMessageReceived    {
    RtmChannelMember    fromMember 
}