Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRI...
If you think the Android project box-android-sdk-v2-master listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.box.boxandroidlibv2.viewlisteners;
//fromwww.java2s.comimport android.net.http.SslError;
import android.webkit.SslErrorHandler;
import com.box.boxjavalibv2.interfaces.IAuthEvent;
import com.box.boxjavalibv2.interfaces.IAuthFlowListener;
import com.box.boxjavalibv2.interfaces.IAuthFlowMessage;
/**
* Listener listening to the {@link com.box.boxandroidlibv2.views.OAuthWebView}.
*/publicabstractclass OAuthWebViewListener implements IAuthFlowListener {
@Override
publicabstractvoid onAuthFlowMessage(IAuthFlowMessage message);
@Override
publicabstractvoid onAuthFlowException(Exception e);
@Override
publicabstractvoid onAuthFlowEvent(IAuthEvent event, IAuthFlowMessage message);
/**
* This indicates a SSL Error, implement this method to handle this error.
*
* @param handler
* SslErrorHandler the handler handle this error. For example, you can simply do handler.process() to ignore this error or handler.cancel() to
* stop web page loading.
* @param error
* error details.
*/publicabstractvoid onSslError(SslErrorHandler handler, SslError error);
/**
* This indicates the webview receives some error. Implement this method to handle properly.
*
* @param errorCode
* error code
* @param description
* description of the error
* @param failingUrl
* the failing url
*/publicabstractvoid onError(int errorCode, String description, String failingUrl);
}