示例#1
0
 /**
  * 授权微信
  *
  * @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);
   }
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 /**
  * 移除QQ授权
  *
  * @param context context
  */
 public static void revokeQQ(Context context) {
   info = SocialInfoKeeper.readSocialInfo(context);
   SocialSSOProxy.logoutQQ(context, info);
 }
示例#4
0
 /**
  * QQ授权
  *
  * @param context context
  */
 public static void oauthQQ(Context context) {
   if (!TextUtils.isEmpty(info.getQqAppId())) {
     SocialInfoKeeper.writeSocialInfo(context, info);
     SocialSSOProxy.loginQQ(context, info);
   }
 }
示例#5
0
 /**
  * 微博授权回调
  *
  * @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);
 }
示例#6
0
 /**
  * 微博授权
  *
  * @param context context
  */
 public static void oauthWeibo(Context context) {
   if (!TextUtils.isEmpty(info.getWeiboAppKey())) {
     SocialInfoKeeper.writeSocialInfo(context, info);
     SocialSSOProxy.loginWeibo(context, info);
   }
 }
示例#7
0
  /**
   * 移除微信授权
   *
   * @param context context
   */
  public static void revokeWeChat(Context context) {

    SocialSSOProxy.logoutWeChat(context);
  }