本文整理匯總了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);
}
}
}
示例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");
}
}
}
示例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);
}
}
示例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);
}
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
}