io.selendroid.server.model
Class AndroidNativeElement.WebViewSourceClient

java.lang.Object
  extended by android.webkit.WebChromeClient
      extended by io.selendroid.server.model.AndroidNativeElement.WebViewSourceClient
Enclosing class:
AndroidNativeElement

public class AndroidNativeElement.WebViewSourceClient
extends android.webkit.WebChromeClient


Nested Class Summary
 
Nested classes/interfaces inherited from class android.webkit.WebChromeClient
android.webkit.WebChromeClient.CustomViewCallback
 
Field Summary
 Object result
           
 
Constructor Summary
AndroidNativeElement.WebViewSourceClient()
           
 
Method Summary
 boolean onJsAlert(android.webkit.WebView view, String url, String message, android.webkit.JsResult jsResult)
          Unconventional way of adding a Javascript interface but the main reason why I took this way is that it is working stable compared to the webview.addJavascriptInterface way.
 
Methods inherited from class android.webkit.WebChromeClient
getDefaultVideoPoster, getVideoLoadingProgressView, getVisitedHistory, onCloseWindow, onConsoleMessage, onConsoleMessage, onCreateWindow, onExceededDatabaseQuota, onGeolocationPermissionsHidePrompt, onGeolocationPermissionsShowPrompt, onHideCustomView, onJsBeforeUnload, onJsConfirm, onJsPrompt, onJsTimeout, onProgressChanged, onReachedMaxAppCacheSize, onReceivedIcon, onReceivedTitle, onReceivedTouchIconUrl, onRequestFocus, onShowCustomView, onShowCustomView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

public Object result
Constructor Detail

AndroidNativeElement.WebViewSourceClient

public AndroidNativeElement.WebViewSourceClient()
Method Detail

onJsAlert

public boolean onJsAlert(android.webkit.WebView view,
                         String url,
                         String message,
                         android.webkit.JsResult jsResult)
Unconventional way of adding a Javascript interface but the main reason why I took this way is that it is working stable compared to the webview.addJavascriptInterface way.

Overrides:
onJsAlert in class android.webkit.WebChromeClient


Copyright © 2014. All rights reserved.