當前位置: 首頁>>代碼示例>>Java>>正文


Java TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE屬性代碼示例

本文整理匯總了Java中com.twitter.sdk.android.core.TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE屬性的典型用法代碼示例。如果您正苦於以下問題:Java TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE屬性的具體用法?Java TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE怎麽用?Java TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.twitter.sdk.android.core.TwitterAuthConfig的用法示例。


在下文中一共展示了TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE屬性的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onActivityResult

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (resultCode == RESULT_OK) {
        if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
            twitterAuthClient.onActivityResult(requestCode, resultCode, data);
        } else if (requestCode == ValueConstants.REQUEST_CAMERA) {
            imgPath = imageUtility.compressImage(uriCamera.getPath());
            imageUtility.loadImage(imgPath, imageView, R.mipmap.ic_launcher);
        } else if (requestCode == ValueConstants.REQUEST_Gallery) {
            imgPath = imageUtility.compressImage(imageUtility.getRealPathFromURI(data.getData()));
            imageUtility.loadImage(imgPath, imageView, R.mipmap.ic_launcher);

        }
    }
}
 
開發者ID:saveendhiman,項目名稱:BackgroundTwitterSharing,代碼行數:16,代碼來源:TwitterSharingActivity.java

示例2: onActivityResult

/**
 * Used to complete the Twitter Login Flow, seen in SocialMultiLoginFragment
 * @param requestCode
 * @param resultCode
 * @param data
 */
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        Fragment fragment = getSupportFragmentManager().findFragmentByTag("PDUISocialMultiLoginFragment");
        if (fragment != null) {
            fragment.onActivityResult(requestCode, resultCode, data);
        } else {
            Log.e(TAG, "onActivityResult: Fragment is NULL");
        }
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:18,代碼來源:MainActivity.java

示例3: onActivityResult

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    Log.i("Rewards Fragment", "onActivityResult: Rewards Fragment");
    if (requestCode == PD_CLAIM_REWARD_REQUEST_CODE && resultCode == Activity.RESULT_OK && data != null) {
        // Reward claimed successfully. Remove from list.
        String id = data.getStringExtra("id");
        if (id != null) {
            for (Iterator<PDReward> it = mRewards.iterator(); it.hasNext(); ) {
                PDReward r = it.next();
                if (r.getId().equalsIgnoreCase(id)) {
                    int position = mRewards.indexOf(r);
                    it.remove();
                    mRecyclerViewAdapter.notifyItemRemoved(position);
                    break;
                }
            }
        }
        if (getParentFragment() != null && getParentFragment() instanceof PDUIHomeFlowFragment) {
            PDUIHomeFlowFragment parent = (PDUIHomeFlowFragment) getParentFragment();
            parent.switchToWalletForVerify(data.getBooleanExtra("verificationNeeded", false), id);
        }
    } else if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        TwitterLoginButton loginButton = new TwitterLoginButton(getActivity());
        loginButton.onActivityResult(requestCode, resultCode, data);
    } else {
        super.onActivityResult(requestCode, resultCode, data);
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:28,代碼來源:PDUIRewardsFragment.java

示例4: onActivityResult

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        List<Fragment> fragments = getChildFragmentManager().getFragments();
        if (fragments != null) {
            for (Fragment fragment : fragments) {
                fragment.onActivityResult(requestCode, resultCode, data);
            }
        }
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:12,代碼來源:PDUIHomeFlowFragment.java

示例5: onActivityResult

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    mCallbackManager.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        TwitterLoginButton loginButton = new TwitterLoginButton(getActivity());
        loginButton.onActivityResult(requestCode, resultCode, data);
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:9,代碼來源:PDUIConnectSocialAccountFragment.java

示例6: onActivityResult

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    Log.i(TAG, "onActivityResult");
    mCallbackManager.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        Log.i(TAG, "onActivityResult: twitter Auth Config");
        TwitterLoginButton loginButton = new TwitterLoginButton(getActivity());
        loginButton.onActivityResult(requestCode, resultCode, data);
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:11,代碼來源:PDUISocialMultiLoginFragment.java

示例7: onActivityResult

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        Fragment fragment = mFragmentManager.findFragmentByTag(PDUIConnectSocialAccountFragment.getName());
        if (fragment != null) {
            fragment.onActivityResult(requestCode, resultCode, data);
        }
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:10,代碼來源:PDUISelectNetworkActivity.java

示例8: onActivityResult

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (requestCode == TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE) {
        Fragment fragment = getSupportFragmentManager().findFragmentByTag("PDUIHomeFlowFragment");
        if (fragment != null) {
            fragment.onActivityResult(requestCode, resultCode, data);
        }
    }
}
 
開發者ID:Popdeem,項目名稱:Popdeem-SDK-Android,代碼行數:10,代碼來源:PDUIHomeFlowActivity.java


注:本文中的com.twitter.sdk.android.core.TwitterAuthConfig.DEFAULT_AUTH_REQUEST_CODE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。