Modify API
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
RenameOnMsgResendListener
toOnMsgStatusViewClickListener
, meanwhile, VoiceViewHolder add receive failed event, when you set VoiceMessage's state toRECEIVE_FAILED
, the message status view will show up, and which's click event will invokeonStatusViewClick
.
usage:
mAdapter.setMsgStatusViewClickListener(new MsgListAdapter.OnMsgStatusViewClickListener<MyMessage>() {
@Override
public void onStatusViewClick(MyMessage message) {
// message status view click, resend or download here
}
});