本文整理汇总了Java中com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser类的典型用法代码示例。如果您正苦于以下问题:Java AlertDialogUser类的具体用法?Java AlertDialogUser怎么用?Java AlertDialogUser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AlertDialogUser类属于com.hyphenate.easeui.widget.EaseAlertDialog包,在下文中一共展示了AlertDialogUser类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: emptyHistory
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
/**
* clear the conversation history
*
*/
protected void emptyHistory() {
String msg = getResources().getString(R.string.Whether_to_empty_all_chats);
new EaseAlertDialog(getActivity(),null, msg, null,new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
if (conversation != null) {
conversation.clearAllMessages();
}
messageList.refresh();
}
}
}, true).show();
}
开发者ID:turoDog,项目名称:KTalk,代码行数:20,代码来源:EaseChatFragment.java
示例2: emptyHistory
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
/**
* clear the conversation history
*
*/
protected void emptyHistory() {
String msg = getResources().getString(R.string.Whether_to_empty_all_chats);
new EaseAlertDialog(getActivity(),null, msg, null,new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
if (conversation != null) {
conversation.clearAllMessages();
}
messageList.refresh();
haveMoreData = true;
}
}
}, true).show();
}
开发者ID:funnyzhaov,项目名称:Tribe,代码行数:21,代码来源:EaseChatFragment.java
示例3: emptyHistory
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
/**
* 点击清空聊天记录
*
*/
protected void emptyHistory() {
String msg = getResources().getString(R.string.Whether_to_empty_all_chats);
new EaseAlertDialog(getActivity(),null, msg, null,new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
// 清空会话
EMClient.getInstance().chatManager().deleteConversation(toChatUsername, true);
messageList.refresh();
}
}
}, true).show();;
}
开发者ID:Rabbit00,项目名称:MeifuGO,代码行数:20,代码来源:EaseChatFragment.java
示例4: onClick
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.clear_all_history: // clear conversation history
String st9 = getResources().getString(R.string.sure_to_empty_this);
new EaseAlertDialog(ChatRoomDetailsActivity.this, null, st9, null, new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
clearGroupHistory();
}
}
}, true).show();
break;
default:
break;
}
}
开发者ID:laoduDYM,项目名称:ChatDemoUI3.0,代码行数:22,代码来源:ChatRoomDetailsActivity.java
示例5: onListItemClick
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
@Override
protected void onListItemClick(int position) {
selectUser = contactAdapter.getItem(position);
new EaseAlertDialog(this, null, getString(R.string.confirm_forward_to, selectUser.getNick()), null, new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if (confirmed) {
if (selectUser == null)
return;
try {
ChatActivity.activityInstance.finish();
} catch (Exception e) {
}
Intent intent = new Intent(ForwardMessageActivity.this, ChatActivity.class);
// it is single chat
intent.putExtra("userId", selectUser.getUsername());
intent.putExtra("forward_msg_id", forward_msg_id);
startActivity(intent);
finish();
}
}
}, true).show();
}
开发者ID:laoduDYM,项目名称:ChatDemoUI3.0,代码行数:24,代码来源:ForwardMessageActivity.java
示例6: emptyHistory
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
/**
* clear the conversation history
*
*/
protected void emptyHistory() {
String msg = getResources().getString(R.string.Whether_to_empty_all_chats);
new EaseAlertDialog(getActivity(),null, msg, null,new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
EMClient.getInstance().chatManager().deleteConversation(toChatUsername, true);
messageList.refresh();
}
}
}, true).show();
}
开发者ID:Vicent9920,项目名称:FanChat,代码行数:18,代码来源:EaseChatFragment.java
示例7: emptyHistory
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
/**
* clear the conversation history
*
*/
protected void emptyHistory() {
String msg = getResources().getString(R.string.Whether_to_empty_all_chats);
new EaseAlertDialog(getActivity(),null, msg, null,new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
EMClient.getInstance().chatManager().deleteConversation(toChatUsername, true);
messageList.refresh();
}
}
}, true).show();;
}
开发者ID:HyphenateInc,项目名称:Hyphenate-EaseUI-Android,代码行数:18,代码来源:EaseChatFragment.java
示例8: onClick
import com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser; //导入依赖的package包/类
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.rl_switch_block_groupmsg: // 屏蔽或取消屏蔽群组
toggleBlockGroup();
break;
case R.id.clear_all_history: // 清空聊天记录
String st9 = getResources().getString(R.string.sure_to_empty_this);
new EaseAlertDialog(GroupDetailsActivity.this, null, st9, null, new AlertDialogUser() {
@Override
public void onResult(boolean confirmed, Bundle bundle) {
if(confirmed){
clearGroupHistory();
}
}
}, true).show();
break;
case R.id.rl_blacklist: // 黑名单列表
startActivity(new Intent(GroupDetailsActivity.this, GroupBlacklistActivity.class).putExtra("groupId", groupId));
break;
case R.id.rl_change_group_name:
startActivityForResult(new Intent(this, EditActivity.class).putExtra("data", group.getGroupName()), REQUEST_CODE_EDIT_GROUPNAME);
break;
case R.id.rl_search:
startActivity(new Intent(this, GroupSearchMessageActivity.class).putExtra("groupId", groupId));
break;
default:
break;
}
}
开发者ID:laoduDYM,项目名称:ChatDemoUI3.0,代码行数:38,代码来源:GroupDetailsActivity.java
注:本文中的com.hyphenate.easeui.widget.EaseAlertDialog.AlertDialogUser类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论