Java Code Examples for cn.sharesdk.framework.Platform#ACTION_USER_INFOR
The following examples show how to use
cn.sharesdk.framework.Platform#ACTION_USER_INFOR .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResourcesManager.java From ShareSDK-for-Android with MIT License | 5 votes |
public static String actionToString(int action) { switch (action) { case Platform.ACTION_AUTHORIZING: { return "ACTION_AUTHORIZING"; } case Platform.ACTION_GETTING_FRIEND_LIST: { return "ACTION_GETTING_FRIEND_LIST"; } case Platform.ACTION_FOLLOWING_USER: { return "ACTION_FOLLOWING_USER"; } case Platform.ACTION_SENDING_DIRECT_MESSAGE: { return "ACTION_SENDING_DIRECT_MESSAGE"; } case Platform.ACTION_TIMELINE: { return "ACTION_TIMELINE"; } case Platform.ACTION_USER_INFOR: { return "ACTION_USER_INFOR"; } case Platform.ACTION_SHARE: { return "ACTION_SHARE"; } default: { return "UNKNOWN"; } } }
Example 2
Source File: ThirdPartyLogin.java From ThirdPartyLoginDemo with MIT License | 5 votes |
public void onComplete(Platform platform, int action, HashMap<String, Object> res) { if (action == Platform.ACTION_USER_INFOR) { Message msg = new Message(); msg.what = MSG_AUTH_COMPLETE; msg.obj = new Object[] {platform.getName(), res}; handler.sendMessage(msg); } }
Example 3
Source File: LevelTop.java From AndroidLinkup with GNU General Public License v2.0 | 4 votes |
public void onComplete(Platform plat, int action, HashMap<String, Object> res) { if (action == Platform.ACTION_USER_INFOR) { login(plat); } }
Example 4
Source File: LevelTop.java From AndroidLinkup with GNU General Public License v2.0 | 4 votes |
public void onError(Platform platform, int action, Throwable t) { if (action == Platform.ACTION_USER_INFOR) { netMsgHandler.sendEmptyMessage(ViewSettings.MSG_AUTH_ERROR); } }
Example 5
Source File: LevelTop.java From AndroidLinkup with GNU General Public License v2.0 | 4 votes |
public void onCancel(Platform platform, int action) { if (action == Platform.ACTION_USER_INFOR) { netMsgHandler.sendEmptyMessage(ViewSettings.MSG_AUTH_CANCEL); } }
Example 6
Source File: ThirdPartyLogin.java From ThirdPartyLoginDemo with MIT License | 4 votes |
public void onError(Platform platform, int action, Throwable t) { if (action == Platform.ACTION_USER_INFOR) { handler.sendEmptyMessage(MSG_AUTH_ERROR); } t.printStackTrace(); }
Example 7
Source File: ThirdPartyLogin.java From ThirdPartyLoginDemo with MIT License | 4 votes |
public void onCancel(Platform platform, int action) { if (action == Platform.ACTION_USER_INFOR) { handler.sendEmptyMessage(MSG_AUTH_CANCEL); } }