Skip to content

Modify API

Compare
Choose a tag to compare
@KenChoi1992 KenChoi1992 released this 01 Sep 06:52
· 705 commits to master since this release

Change Log

Android

  • MessageList release 0.4.7
    OnMsgResendListener 更名为 OnMsgStatusViewClickListener, 同时,接收方语音消息增加此事件回调,将消息状态设置为 RECEIVE_FAILED, 会出现一个状态按钮,按钮的点击事件会回调 onStatusViewClick.
    使用方式:
mAdapter.setMsgStatusViewClickListener(new MsgListAdapter.OnMsgStatusViewClickListener<MyMessage>() {
            @Override
            public void onStatusViewClick(MyMessage message) {
                // message status view click, resend or download here
            }
        });

Android

  • MessageList release 0.4.7
    Rename OnMsgResendListener to OnMsgStatusViewClickListener, meanwhile, VoiceViewHolder add receive failed event, when you set VoiceMessage's state to RECEIVE_FAILED, the message status view will show up, and which's click event will invoke onStatusViewClick.

usage:

mAdapter.setMsgStatusViewClickListener(new MsgListAdapter.OnMsgStatusViewClickListener<MyMessage>() {
            @Override
            public void onStatusViewClick(MyMessage message) {
                // message status view click, resend or download here
            }
        });