本文整理匯總了Java中cn.sharesdk.framework.Platform.ACTION_AUTHORIZING屬性的典型用法代碼示例。如果您正苦於以下問題:Java Platform.ACTION_AUTHORIZING屬性的具體用法?Java Platform.ACTION_AUTHORIZING怎麽用?Java Platform.ACTION_AUTHORIZING使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類cn.sharesdk.framework.Platform
的用法示例。
在下文中一共展示了Platform.ACTION_AUTHORIZING屬性的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: parseAction
private static String parseAction(int action) {
switch (action) {
case Platform.ACTION_AUTHORIZING:
return "ACTION_AUTHORIZING";
case Platform.ACTION_FOLLOWING_USER:
return "ACTION_FOLLOWING_USER";
case Platform.ACTION_GETTING_FRIEND_LIST:
return "ACTION_GETTING_FRIEND_LIST";
case Platform.ACTION_SENDING_DIRECT_MESSAGE:
return "ACTION_SENDING_DIRECT_MESSAGE";
case Platform.ACTION_SHARE:
return "ACTION_SHARE";
case Platform.ACTION_TIMELINE:
return "ACTION_TIMELINE";
case Platform.ACTION_USER_INFOR:
return "ACTION_USER_INFOR";
default:
return null;
}
}
示例2: onComplete
@Override
public void onComplete(Platform platform, int action, HashMap<String, Object> map) {
/*
L.d(WelcomeActy.class, "onComplete---platform:" + platform.getName());
parseAction(action);
if (map != null) {
for (Entry<String, Object> entry : map.entrySet()) {
L.i(WelcomeActy.class, "Map--key:" + entry.getKey() + ", value:" + entry.getValue());
}
}*/
switch (action) {
case Platform.ACTION_AUTHORIZING: //認證登錄
if (platform.getName().equals(QQ.NAME)) {
PlatformDb db = ShareSdk.getAuthorizeData(WelcomeActy.this, platform.getName());
loginWithQQ(db.getUserId());
return;
}
break;
case Platform.ACTION_FOLLOWING_USER:
break;
case Platform.ACTION_GETTING_FRIEND_LIST:
break;
case Platform.ACTION_SENDING_DIRECT_MESSAGE:
break;
case Platform.ACTION_SHARE:
break;
case Platform.ACTION_TIMELINE:
break;
case Platform.ACTION_USER_INFOR:
break;
}
updateLoginBtnState(true);
}