当前位置: 首页>>代码示例>>Java>>正文


Java UMDataListener类代码示例

本文整理汇总了Java中com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener的典型用法代码示例。如果您正苦于以下问题:Java UMDataListener类的具体用法?Java UMDataListener怎么用?Java UMDataListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


UMDataListener类属于com.umeng.socialize.controller.listener.SocializeListeners包,在下文中一共展示了UMDataListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPlatformAndLogin

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
private void getPlatformAndLogin(final SHARE_MEDIA args) {
    if (this.mActivity != null) {
        this.mActivity.showLoading();
    }
    this.mController.getPlatformInfo(this.mActivity, args, new UMDataListener() {
        public void onStart() {
            Helper.showLog(SNSLogin.TAG, "获取平台数据开始...");
        }

        public void onComplete(int status, Map<String, Object> info) {
            if (status != 200 || info == null) {
                Helper.showLog("TestData", "发生错误:" + status);
                Helper.showToast((int) R.string.ca);
                if (SNSLogin.this.mActivity != null) {
                    SNSLogin.this.mActivity.dismissLoading();
                    return;
                }
                return;
            }
            SNSLogin.this.snsLogin(args, info);
        }
    });
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:24,代码来源:SNSLogin.java

示例2: getPlatformInfo

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void getPlatformInfo(Context context, SHARE_MEDIA share_media, UMDataListener
        uMDataListener) {
    UMDataListener createDataListener;
    if (uMDataListener == null) {
        createDataListener = ListenerUtils.createDataListener();
    } else {
        createDataListener = uMDataListener;
    }
    if (!OauthHelper.isAuthenticated(context, share_media) && share_media != SHARE_MEDIA
            .FACEBOOK) {
        createDataListener.onStart();
        createDataListener.onComplete(StatusCode.ST_CODE_SDK_NO_OAUTH, null);
    } else if (share_media == SHARE_MEDIA.WEIXIN || share_media == SHARE_MEDIA.WEIXIN_CIRCLE
            || share_media == SHARE_MEDIA.QQ || share_media == SHARE_MEDIA.FACEBOOK) {
        UMSsoHandler ssoHandler = getConfig().getSsoHandler(share_media.getReqCode());
        if (ssoHandler == null) {
            Log.w("", "请添加" + share_media.toString() + "平台");
        } else {
            ssoHandler.getUserInfo(createDataListener);
        }
    } else {
        new aa(this, createDataListener, this, context, new SNSPair(share_media.toString(),
                OauthHelper.getUsid(context, share_media))).execute();
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:26,代码来源:v.java

示例3: getUserInfo

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void getUserInfo(UMDataListener listener) {
    String uid = OauthHelper.getUsid(this.mContext, SHARE_MEDIA.WEIXIN);
    if (TextUtils.isEmpty(uid)) {
        uid = OauthHelper.getUsid(this.mContext, SHARE_MEDIA.WEIXIN_CIRCLE);
    }
    String accessToken = OauthHelper.getAccessToken(this.mContext, SHARE_MEDIA.WEIXIN)[0];
    if (TextUtils.isEmpty(accessToken)) {
        accessToken = OauthHelper.getAccessToken(this.mContext, SHARE_MEDIA.WEIXIN_CIRCLE)[0];
    }
    if (TextUtils.isEmpty(uid) || TextUtils.isEmpty(accessToken)) {
        Log.e("UMWXHandler", "please check had authed...");
        listener.onComplete(StatusCode.ST_CODE_ERROR, null);
        return;
    }
    StringBuilder builder = new StringBuilder();
    builder.append("https://api.weixin.qq.com/sns/userinfo?access_token=");
    builder.append(accessToken).append("&openid=").append(uid);
    if (SocializeConfig.getSocializeConfig().getWechatUserInfoLanguage() == Language.ZH) {
        builder.append("&lang=zh_CN");
    }
    new 5 (this, builder, listener).execute();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:23,代码来源:UMWXHandler.java

示例4: createDataListener

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public static UMDataListener createDataListener() {
    return new UMDataListener() {
        public void onStart() {
        }

        public void onComplete(int i, Map<String, Object> map) {
        }
    };
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:10,代码来源:ListenerUtils.java

示例5: getPlatformKeys

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void getPlatformKeys(Context context, UMDataListener uMDataListener) {
    if (a(context)) {
        this.e.getPlatformKeys(context, uMDataListener);
    } else {
        uMDataListener.onComplete(StatusCode.ST_CODE_SDK_INITQUEUE_FAILED, new HashMap());
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:8,代码来源:InitializeController.java

示例6: aa

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
aa(v vVar, UMDataListener uMDataListener, InitializeController initializeController, Context
        context, SNSPair sNSPair) {
    this.e = vVar;
    this.a = uMDataListener;
    this.b = initializeController;
    this.c = context;
    this.d = sNSPair;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:9,代码来源:aa.java

示例7: checkTokenExpired

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void checkTokenExpired(Context context, SHARE_MEDIA[] share_mediaArr, UMDataListener
        uMDataListener) {
    if (a(context)) {
        this.e.checkTokenExpired(context, share_mediaArr, uMDataListener);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:InitializeController.java

示例8: b

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
b(a aVar, UMDataListener uMDataListener, Context context) {
    this.c = aVar;
    this.a = uMDataListener;
    this.b = context;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:6,代码来源:b.java

示例9: getPlatformKeys

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void getPlatformKeys(Context context, UMDataListener uMDataListener) {
    super.getPlatformKeys(context, uMDataListener);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:v.java

示例10: checkTokenExpired

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void checkTokenExpired(Context context, SHARE_MEDIA[] share_mediaArr, UMDataListener
        uMDataListener) {
    super.checkTokenExpired(context, share_mediaArr, uMDataListener);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:v.java

示例11: getPlatformKeys

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void getPlatformKeys(Context context, UMDataListener uMDataListener) {
    new b(this, uMDataListener, context).execute();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:4,代码来源:a.java

示例12: a

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
private void a(Activity activity, SHARE_MEDIA share_media, UMAuthListener uMAuthListener,
               UMSsoHandler uMSsoHandler) {
    this.a.addStatisticsData(activity, share_media, 12);
    UMDataListener aVar = new a(this, activity, share_media, new f(this, uMAuthListener,
            activity), uMSsoHandler);
    if (this.c == null || this.d == null) {
        this.c = SocializeUtils.getPlatformSecret(activity);
        this.d = SocializeUtils.getPlatformKey(activity);
    }
    if (a(share_media)) {
        UMSsoHandler ssoHandler = this.b.getSsoHandler(share_media.getReqCode());
        String str = "";
        Object obj = "";
        if (share_media == SHARE_MEDIA.WEIXIN || share_media == SHARE_MEDIA.WEIXIN_CIRCLE) {
            str = (String) ssoHandler.mExtraData.get(SocializeConstants.FIELD_WX_APPID);
            obj = (String) ssoHandler.mExtraData.get(SocializeConstants.FIELD_WX_SECRET);
            this.a.putExtra(SocializeConstants.FIELD_WX_APPID, str);
            this.a.putExtra(SocializeConstants.FIELD_WX_SECRET, obj);
        } else if (share_media == SHARE_MEDIA.QQ || share_media == SHARE_MEDIA.QZONE) {
            str = (String) ssoHandler.mExtraData.get(SocializeConstants.FIELD_QZONE_ID);
            String str2 = (String) ssoHandler.mExtraData.get("qzone_secret");
            this.a.putExtra(SocializeConstants.FIELD_QZONE_ID, str);
            this.a.putExtra("qzone_secret", str2);
        }
        Object obj2 = null;
        if (!(this.d == null || this.d.get(share_media.toString()) == null)) {
            obj2 = this.d.get(share_media.toString()).toString();
        }
        if (!str.equals(obj2)) {
            this.d.put(share_media.toString(), str);
            this.c.put(share_media.toString(), obj);
            SocializeUtils.savePlatformKey(activity, this.d);
            SocializeUtils.savePlatformSecret(activity, this.c);
            a((Context) activity, this.d, aVar);
            return;
        }
    }
    if (b(share_media)) {
        aVar.onStart();
        aVar.onComplete(200, this.d);
        getPlatformKeys(activity, ListenerUtils.createDataListener());
        return;
    }
    getPlatformKeys(activity, aVar);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:46,代码来源:a.java

示例13: checkTokenExpired

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
public void checkTokenExpired(Context context, SHARE_MEDIA[] share_mediaArr, UMDataListener
        uMDataListener) {
    new j(this, uMDataListener, context, a(share_mediaArr)).execute();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:5,代码来源:a.java

示例14: j

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
j(a aVar, UMDataListener uMDataListener, Context context, SHARE_MEDIA[] share_mediaArr) {
    this.d = aVar;
    this.a = uMDataListener;
    this.b = context;
    this.c = share_mediaArr;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:j.java

示例15: g

import com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener; //导入依赖的package包/类
g(a aVar, Context context, UMDataListener uMDataListener, Map map) {
    this.d = aVar;
    this.a = context;
    this.b = uMDataListener;
    this.c = map;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:g.java


注:本文中的com.umeng.socialize.controller.listener.SocializeListeners.UMDataListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。