本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}