本文整理汇总了Java中com.facebook.FacebookDialogException类的典型用法代码示例。如果您正苦于以下问题:Java FacebookDialogException类的具体用法?Java FacebookDialogException怎么用?Java FacebookDialogException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FacebookDialogException类属于com.facebook包,在下文中一共展示了FacebookDialogException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: callDialogListener
import com.facebook.FacebookDialogException; //导入依赖的package包/类
private void callDialogListener(Bundle values, FacebookException error) {
if (mListener == null) {
return;
}
if (values != null) {
mListener.onComplete(values);
} else {
if (error instanceof FacebookDialogException) {
FacebookDialogException facebookDialogException = (FacebookDialogException) error;
DialogError dialogError = new DialogError(facebookDialogException.getMessage(),
facebookDialogException.getErrorCode(), facebookDialogException.getFailingUrl());
mListener.onError(dialogError);
} else if (error instanceof FacebookOperationCanceledException) {
mListener.onCancel();
} else {
FacebookError facebookError = new FacebookError(error.getMessage());
mListener.onFacebookError(facebookError);
}
}
}
示例2: callDialogListener
import com.facebook.FacebookDialogException; //导入依赖的package包/类
private void callDialogListener(Bundle paramBundle, FacebookException paramFacebookException)
{
if (this.mListener == null)
return;
if (paramBundle != null)
{
this.mListener.onComplete(paramBundle);
return;
}
if ((paramFacebookException instanceof FacebookDialogException))
{
FacebookDialogException localFacebookDialogException = (FacebookDialogException)paramFacebookException;
DialogError localDialogError = new DialogError(localFacebookDialogException.getMessage(), localFacebookDialogException.getErrorCode(), localFacebookDialogException.getFailingUrl());
this.mListener.onError(localDialogError);
return;
}
if ((paramFacebookException instanceof FacebookOperationCanceledException))
{
this.mListener.onCancel();
return;
}
FacebookError localFacebookError = new FacebookError(paramFacebookException.getMessage());
this.mListener.onFacebookError(localFacebookError);
}
示例3: onReceivedError
import com.facebook.FacebookDialogException; //导入依赖的package包/类
@Override
public void onReceivedError(WebView view, int errorCode,
String description, String failingUrl) {
super.onReceivedError(view, errorCode, description, failingUrl);
sendErrorToListener(new FacebookDialogException(description, errorCode, failingUrl));
WebDialog.this.dismiss();
}
示例4: onReceivedSslError
import com.facebook.FacebookDialogException; //导入依赖的package包/类
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
if (DISABLE_SSL_CHECK_FOR_TESTING) {
handler.proceed();
} else {
super.onReceivedSslError(view, handler, error);
sendErrorToListener(new FacebookDialogException(null, ERROR_FAILED_SSL_HANDSHAKE, null));
handler.cancel();
WebDialog.this.dismiss();
}
}
示例5: onReceivedSslError
import com.facebook.FacebookDialogException; //导入依赖的package包/类
public void onReceivedSslError(WebView paramWebView, SslErrorHandler paramSslErrorHandler, SslError paramSslError)
{
super.onReceivedSslError(paramWebView, paramSslErrorHandler, paramSslError);
WebDialog.this.sendErrorToListener(new FacebookDialogException(null, -11, null));
paramSslErrorHandler.cancel();
WebDialog.this.dismiss();
}
示例6: onReceivedError
import com.facebook.FacebookDialogException; //导入依赖的package包/类
public void onReceivedError(WebView paramWebView, int paramInt, String paramString1, String paramString2)
{
super.onReceivedError(paramWebView, paramInt, paramString1, paramString2);
WebDialog.this.sendErrorToListener(new FacebookDialogException(paramString1, paramInt, paramString2));
WebDialog.this.dismiss();
}