Get the state of Cookies beeing accepted or not. Returns TRUE if Cookies are accept or FALSE if not. Example: DimwvXtenderAsWebViewXtender DimbolCKasBoolean bolCK = wvXtender.getAcceptCookie(webView1)
Get the favicon...if available and returns a bitmap, else return default bitmap Example: DimwvXtenderAsWebViewXtender DimbmpFIAsBitmap DimstrURLasString strURL = "http://www.blick.ch" bmpDefault.Initialize(File.DirAssets ,"defaultfavicon.png")
bmpFI.Initialize3(wvXtender.getFaviconFromUrl(strURL, bmpDefault))
Get the favicon of current page...if available and returns a bitmap, else return default bitmap Example: DimwvXtenderAsWebViewXtender DimbmpFIAsBitmap DimstrURLasString strURL = "http://www.blick.ch" bmpFI.Initialize3(wvXtender.getFaviconFromUrl(strURL))
Get the host name of the current page. Example: DimwvXtenderAsWebViewXtender DimstrCurrHostasString DimstrURLasString strURL = "http://www.blick.ch" strCurrHost = wvXtender.getHost(strURL)
Get the state if JavaScript is enabled in the WebView. Returns TRUE if so. Example: DimwvXtenderAsWebViewXtender DimbolJSAsBoolean bolJS = wvXtender.getJavaScriptEnabled(webView1)
Get the state if images are loaded automatically. Returns TRUE if so. Example: DimwvXtenderAsWebViewXtender DimbolLoadAutoAsBoolean bolLoadAuto = wvXtender.getLoadsImagesAutomatically(webView1)
Get the original url for the current page. This is not always the same as the url passed to WebViewClient.onPageStarted because although the load for that url has begun, the current page may not have changed. Also, there may have been redirects resulting in a different url to that originally requested. Example: DimwvXtenderAsWebViewXtender DimstrOrigURLasString strOrigURL = wvXtender.getOriginalUrl(webView1)
Get the state of the PlugIns. Returns a string with the actual state: OFF, ON or ON_DEMAND. Example: DimwvXtenderAsWebViewXtender DimstrPSAsString strPS = wvXtender.getPluginState(webView1)
Get the progress for the current page between 0 and 100. May use it with a timer. Example: DimwvXtenderAsWebViewXtender DimintPrograsInt wvXtender.getProgress(webView1)
Return the scrolled left position of this view. This is the left edge of the displayed part of your view. You do not need to draw any pixels farther left, since those are outside of the frame of your view on screen Example: DimwvXtenderAsWebViewXtender DimintLeftEdgeasint intLeftEdge = wvXtender.getScrollX(webView1)
Return the scrolled top position of this view. This is the top edge of the displayed part of your view. You do not need to draw any pixels above it, since those are outside of the frame of your view on screen. Example: DimwvXtenderAsWebViewXtender DimintTopEdgeasint intTopEdge = wvXtender.getScrollY(webView1)
Get the title for the current page. This is the title of the current page. Example: DimwvXtenderAsWebViewXtender DimstrCurrTitleasString strCurrTitle = wvXtender.getTitle(webView1)
Indicate whether the horizontal scrollbar should be drawn or not. The scrollbar is not drawn by default. Returns true if the horizontal scrollbar should be painted, false otherwise Example: DimwvXtenderAsWebViewXtender DimbolEnabledasBoolean bolEnabled = wvXtender.isHorizontalScrollBarEnabled(webView1)
Indicate whether the vertical scrollbar should be drawn or not. The scrollbar is not drawn by default. Returns true if the vertical scrollbar should be painted, false otherwise Example: DimwvXtenderAsWebViewXtender DimbolEnabledasBoolean bolEnabled = wvXtender.isVerticalScrollBarEnabled(webView1)
Scroll the contents of the view down by half the page size. Boolean TRUE = scrolls to the bottom. Example: DimwvXtenderAsWebViewXtender wvXtender.pageDown(webView1, true)
Scroll the contents of the view up by half the view size. Boolean TRUE = scrolls to the top. Example: DimwvXtenderAsWebViewXtender wvXtender.pageUp(webView1, false)
resumeTimers (webView1Asandroid.webkit.WebView)
Resume all layout, parsing, and JavaScript timers for all webviews. This will resume dispatching all timers. Example: DimwvXtenderAsWebViewXtender wvXtender.resumeTimers(webView1)
Move the scrolled position of your view in given x and y positions as int values. Example: DimwvXtenderAsWebViewXtender wvXtender.scrollBy(webView1, 20,50)
Set the scrolled position of your view in given x and y positions as int values. Example: DimwvXtenderAsWebViewXtender wvXtender.scrollTo(webView1, 20,50)
Set the state of Cookies beeing accepted or not. Use TRUE if you want accept Cookies in the WebView or FALSE if not. Example: DimwvXtenderAsWebViewXtender wvXtender.setAcceptCookie(webView1, false)
Define whether the horizontal scrollbar should be drawn or not. The scrollbar is not drawn by default. Example: DimwvXtenderAsWebViewXtender DimbolEnabledasBoolean bolEanbled = True wvXtender.setHorizontalScrollBarEnabled(webView1, bolEanbled)
Set the initial scale in percent for the WebView. 0 means default. If initial scale is greater than 0, WebView starts with this value as initial scale. Please note that unlike the scale properties in the viewport meta tag, this method doesn't take the screen density into account. Example: DimwvXtenderAsWebViewXtender wvXtender.setInitialScale (webView1, 10)
Enables or disables JavaScript in the WebView. Use FALSE if you do not want to enable JavaScript or TRUE to enable. Example: DimwvXtenderAsWebViewXtender wvXtender.setJavaScriptEnabled(webView1, false)
Set the state if images are loaded automatically. Use FALSE if you do not want to load images in the WebView. Example: DimwvXtenderAsWebViewXtender wvXtender.setLoadsImagesAutomatically(webView1, false)
Set the state of PlugIns. Use a string with ON, OFF or ON_DEMAND, depending what you like to have in the WebView. Example: DimwvXtenderAsWebViewXtender DimstrPSAsString strPS = "OFF" wvXtender.setPluginState(webView1, strPS)
Youcanalsowritedirectthevaluewithoutastringvariable:
wvXtender.setPluginState(webView1, "ON_DEMAND")
Specify the style of the scrollbars. The scrollbars can be overlaid or inset. When inset, they add to the padding of the view. And the scrollbars can be drawn inside the padding area or on the edge of the view. For example, if a view has a background drawable and you want to draw the scrollbars inside the padding specified by the drawable, you can use SCROLLBARS_INSIDE_OVERLAY or SCROLLBARS_INSIDE_INSET. If you want them to appear at the edge of the view, ignoring the padding, then you can use SCROLLBARS_OUTSIDE_OVERLAY or SCROLLBARS_OUTSIDE_INSET.
Allowed int values for style are: 0 = SCROLLBARS_INSIDE_OVERLAY 16777216 = SCROLLBARS_INSIDE_INSET 33554432 = SCROLLBARS_OUTSIDE_OVERLAY 50331648 = SCROLLBARS_OUTSIDE_INSET
Example: DimwvXtenderAsWebViewXtender DimintStyleasInt intStyle = 16777216'(iE for SCROLLBARS_INSIDE_INSET) wvXtender.setScrollBarStyle(webView1, intStyle)
Define whether the vertical scrollbar should be drawn or not. The scrollbar is not drawn by default. Example: DimwvXtenderAsWebViewXtender DimbolEnabledasBoolean bolEanbled = True wvXtender.setVerticalScrollBarEnabled(webView1, bolEanbled)
Perform zoom in in the webview. Return TRUE if zoom in succeeds. FALSE if no zoom changes. Example: DimwvXtenderAsWebViewXtender dimbolZoomInasBoolean bolZoomIn = wvXtender.zoomIn(webView1)
Perform zoom out in the webview. Return TRUE if zoom out succeeds. FALSE if no zoom changes. Example: DimwvXtenderAsWebViewXtender dimbolZoomOutasBoolean bolZoomOut = wvXtender.zoomOut(webView1)
Top