当前位置: 首页>>代码示例>>Java>>正文


Java UIHandler.sendMessage方法代码示例

本文整理汇总了Java中cn.sharesdk.framework.utils.UIHandler.sendMessage方法的典型用法代码示例。如果您正苦于以下问题:Java UIHandler.sendMessage方法的具体用法?Java UIHandler.sendMessage怎么用?Java UIHandler.sendMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cn.sharesdk.framework.utils.UIHandler的用法示例。


在下文中一共展示了UIHandler.sendMessage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
	FollowersResult followersResult = parseFollowers(platform.getName(), res, map);

	if(followersResult == null) {
		UIHandler.sendEmptyMessage(FOLLOW_LIST_EMPTY, this);
		return;
	}
	hasNext = followersResult.hasNextPage;
	if (followersResult.list != null && followersResult.list.size() > 0) {
		curPage++;
		Message msg = new Message();
		msg.what = 1;
		msg.obj = followersResult.list;
		UIHandler.sendMessage(msg, this);
	}
}
 
开发者ID:nickalc,项目名称:csdn-master,代码行数:17,代码来源:FollowListPage.java

示例2: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
	ArrayList<Following> data = parseList(res);
	if (data != null && data.size() > 0) {
		curPage++;
		Message msg = new Message();
		msg.what = 1;
		msg.obj = data;
		UIHandler.sendMessage(msg, this);
	}
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:11,代码来源:FollowList.java

示例3: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform platform, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:10,代码来源:OnekeyShare.java

示例4: onError

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// 分享失败的统计
	ShareSDK.logDemoEvent(4, platform);
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:14,代码来源:OnekeyShare.java

示例5: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform platform, int action) {
	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = platform;
	UIHandler.sendMessage(msg, this);
}
 
开发者ID:SShineTeam,项目名称:Huochexing12306,代码行数:9,代码来源:OnekeyShare.java

示例6: onError

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onError(Platform plat, int action, Throwable t) {
    t.printStackTrace();

    Message msg = new Message();
    msg.arg1 = 2;
    msg.arg2 = action;
    msg.obj = t;
    UIHandler.sendMessage(msg, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:10,代码来源:WechatPage.java

示例7: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
    Message msg = new Message();
    msg.arg1 = 1;
    msg.arg2 = action;
    msg.obj = res;
    UIHandler.sendMessage(msg, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:8,代码来源:CustomerPage.java

示例8: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action,
                       HashMap<String, Object> res) {
    Message msg = new Message();
    msg.arg1 = 1;
    msg.arg2 = action;
    msg.obj = plat;
    UIHandler.sendMessage(msg, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:9,代码来源:WechatPage.java

示例9: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform platform, int action) {
    Message msg = new Message();
    msg.what = MSG_ACTION_CCALLBACK;
    msg.arg1 = 3;
    msg.arg2 = action;
    msg.obj = platform;
    UIHandler.sendMessage(msg, this);
}
 
开发者ID:csuyzb,项目名称:AndroidLinkup,代码行数:9,代码来源:OnekeyShare.java

示例10: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform plat, int action) {
	Message msg = new Message();
	msg.arg1 = 3;
	msg.arg2 = action;
	msg.obj = plat;
	UIHandler.sendMessage(msg, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:8,代码来源:GetInforPage.java

示例11: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action,
		HashMap<String, Object> res) {
	Message msg = new Message();
	msg.arg1 = 1;
	msg.arg2 = action;
	msg.obj = plat;
	UIHandler.sendMessage(msg, this);

	Message msg2 = new Message();
	msg2.what = 1;
	msg2.obj = res;
	UIHandler.sendMessage(msg2, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:14,代码来源:GetInforPage.java

示例12: onCancel

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onCancel(Platform palt, int action) {
    Message msg = new Message();
    msg.arg1 = 3;
    msg.arg2 = action;
    msg.obj = palt;
    UIHandler.sendMessage(msg, this);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:8,代码来源:DemoPage.java

示例13: onError

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onError(Platform platform, int action, Throwable t) {
	t.printStackTrace();

	Message msg = new Message();
	msg.what = MSG_ACTION_CCALLBACK;
	msg.arg1 = 2;
	msg.arg2 = action;
	msg.obj = t;
	UIHandler.sendMessage(msg, this);

	// a statistics of cancel sharing
	ShareSDK.logDemoEvent(4, platform);
}
 
开发者ID:snowdream,项目名称:android-sharesdk,代码行数:14,代码来源:OnekeyShare.java

示例14: onError

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onError(Platform platform, int action, Throwable t) {
    t.printStackTrace();

    Message msg = new Message();
    msg.what = MSG_ACTION_CCALLBACK;
    msg.arg1 = 2;
    msg.arg2 = action;
    msg.obj = t;
    UIHandler.sendMessage(msg, this);

    // 分享失败的统计
    ShareSDK.logDemoEvent(4, platform);
}
 
开发者ID:csuyzb,项目名称:AndroidLinkup,代码行数:14,代码来源:OnekeyShare.java

示例15: onComplete

import cn.sharesdk.framework.utils.UIHandler; //导入方法依赖的package包/类
public void onComplete(Platform plat, int action, HashMap<String, Object> res) {
	ArrayList<Following> data = parseList(res);
	if (data != null && data.size() > 0) {
		curPage++;
		Message msg = new Message();
		msg.what = 1;
		msg.obj = data;
		UIHandler.sendMessage(msg, this);
	}else{
		UIHandler.sendEmptyMessage(FOLLOW_LIST_EMPTY, this);
	}
}
 
开发者ID:SimonJoker,项目名称:OnTheRoad,代码行数:13,代码来源:FollowList.java


注:本文中的cn.sharesdk.framework.utils.UIHandler.sendMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。