private SimpleListener mSimpleListener;
if (mSimpleListener == null) {
mSimpleListener = new SimpleListener();
}
V2TIMManager.getInstance().addSimpleMsgListener(mSimpleListener);
private class SimpleListener extends V2TIMSimpleMsgListener {
@Override
public void onRecvC2CTextMessage(String msgID, V2TIMUserInfo sender, String text) {
Log.i(TAG, " onRecvGroupCustomMessage: msgID = "
+ " , mGroupId = " + " , sender = " + sender + " , text = " + text);
super.onRecvC2CTextMessage(msgID, sender, text);
}
@Override
public void onRecvGroupTextMessage(String msgID, String groupID, V2TIMGroupMemberInfo sender, String text) {
}
@Override
public void onRecvGroupCustomMessage(String msgID, String groupID,
V2TIMGroupMemberInfo sender, byte[] customData) {
}
}
05-30