com.sina.weibo.sdk.api.share.IWeiboShareAPI Java Examples

The following examples show how to use com.sina.weibo.sdk.api.share.IWeiboShareAPI. 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: WeiboShareProxy.java    From ESSocialSDK with Apache License 2.0 5 votes vote down vote up
public static IWeiboShareAPI getInstance(Context context, String appKey) {
    LogUtil.enableLog();
    if (null == api) {
        api = WeiboShareSDK.createWeiboAPI(context, appKey);
        api.registerApp();
    }

    return api;
}
 
Example #2
Source File: WeiboLoginInstance.java    From ShareUtil with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isInstall(Context context) {
    IWeiboShareAPI shareAPI =
            WeiboShareSDK.createWeiboAPI(context, ShareManager.CONFIG.getWeiboId());
    return shareAPI.isWeiboAppInstalled();
}
 
Example #3
Source File: ShareUtil.java    From ShareUtil with Apache License 2.0 4 votes vote down vote up
@Deprecated
public static boolean isWeiBoInstalled(@NonNull Context context) {
    IWeiboShareAPI shareAPI =
            WeiboShareSDK.createWeiboAPI(context, ShareManager.CONFIG.getWeiboId());
    return shareAPI.isWeiboAppInstalled();
}
 
Example #4
Source File: WeiboLoginInstance.java    From smart-farmer-android with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isInstall(Context context) {
    IWeiboShareAPI shareAPI =
            WeiboShareSDK.createWeiboAPI(context, ShareManager.CONFIG.getWeiboId());
    return shareAPI.isWeiboAppInstalled();
}
 
Example #5
Source File: ShareUtil.java    From smart-farmer-android with Apache License 2.0 4 votes vote down vote up
@Deprecated
public static boolean isWeiBoInstalled(@NonNull Context context) {
    IWeiboShareAPI shareAPI =
            WeiboShareSDK.createWeiboAPI(context, ShareManager.CONFIG.getWeiboId());
    return shareAPI.isWeiboAppInstalled();
}
 
Example #6
Source File: WeiboShareProxy.java    From ESSocialSDK with Apache License 2.0 4 votes vote down vote up
public static IWeiboShareAPI getInstance() {
    return api;
}