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

The following examples show how to use com.sina.weibo.sdk.api.share.IWeiboShareAPI. These examples are extracted from open source projects. 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 Project: ESSocialSDK   Source File: WeiboShareProxy.java    License: 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 Project: ShareUtil   Source File: WeiboLoginInstance.java    License: 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 Project: ShareUtil   Source File: ShareUtil.java    License: 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 Project: smart-farmer-android   Source File: WeiboLoginInstance.java    License: 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 Project: smart-farmer-android   Source File: ShareUtil.java    License: 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 Project: ESSocialSDK   Source File: WeiboShareProxy.java    License: Apache License 2.0 4 votes vote down vote up
public static IWeiboShareAPI getInstance() {
    return api;
}