/** * 授权微信 * * @param context context */ public static void oauthWeChat(Context context) { if (!TextUtils.isEmpty(info.getWechatAppId()) && !TextUtils.isEmpty(info.getWeChatAppSecret())) { SocialInfoKeeper.writeSocialInfo(context, info); SocialSSOProxy.loginWeChat(context, info); } }
/** * QQ授权回调 * * @param requestCode request * @param resultCode result * @param data data */ public static void oauthQQCallback(int requestCode, int resultCode, Intent data) { SocialSSOProxy.loginQQCallback(requestCode, resultCode, data); }
/** * 移除QQ授权 * * @param context context */ public static void revokeQQ(Context context) { info = SocialInfoKeeper.readSocialInfo(context); SocialSSOProxy.logoutQQ(context, info); }
/** * QQ授权 * * @param context context */ public static void oauthQQ(Context context) { if (!TextUtils.isEmpty(info.getQqAppId())) { SocialInfoKeeper.writeSocialInfo(context, info); SocialSSOProxy.loginQQ(context, info); } }
/** * 微博授权回调 * * @param context contxt * @param requestCode request * @param resultCode result * @param data data */ public static void oauthWeiboCallback( Context context, int requestCode, int resultCode, Intent data) { SocialSSOProxy.loginWeiboCallback(context, info, requestCode, resultCode, data); }
/** * 微博授权 * * @param context context */ public static void oauthWeibo(Context context) { if (!TextUtils.isEmpty(info.getWeiboAppKey())) { SocialInfoKeeper.writeSocialInfo(context, info); SocialSSOProxy.loginWeibo(context, info); } }
/** * 移除微信授权 * * @param context context */ public static void revokeWeChat(Context context) { SocialSSOProxy.logoutWeChat(context); }