FileDocCategorySizeDatePackage
UnimplementedWebViewApi.javaAPI DocAndroid 5.1 API2087Thu Mar 12 22:22:56 GMT 2015com.android.webview.chromium

UnimplementedWebViewApi

public class UnimplementedWebViewApi extends Object

Fields Summary
private static String
TAG
private static boolean
THROW
private static boolean
FULL_TRACE
Constructors Summary
Methods Summary
public static voidinvoke()


          
        if (THROW) {
            throw new UnimplementedWebViewApiException();
        } else {
            if (FULL_TRACE) {
                Log.w(TAG, "Unimplemented WebView method called in: " +
                      Log.getStackTraceString(new Throwable()));
            } else {
                StackTraceElement[] trace = new Throwable().getStackTrace();
                // The stack trace [0] index is this method (invoke()).
                StackTraceElement unimplementedMethod = trace[1];
                StackTraceElement caller = trace[2];
                Log.w(TAG, "Unimplemented WebView method " + unimplementedMethod.getMethodName() +
                        " called from: " + caller.toString());
            }
        }