This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:webview [2015/04/18 10:26] octazid add new methods and delete false |
built_in:webview [2018/08/16 08:46] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
You can create a control to display local or remote web pages in your App using the **CreateWebView** method of the **[[built_in: | You can create a control to display local or remote web pages in your App using the **CreateWebView** method of the **[[built_in: | ||
< | < | ||
+ | options include **" | ||
+ | |||
If you are loading remote web pages, then you might want to use the **SetOnProgress** method to set the name of a callback function that you want called to report the progress of loading the page. | If you are loading remote web pages, then you might want to use the **SetOnProgress** method to set the name of a callback function that you want called to report the progress of loading the page. | ||
Line 24: | Line 26: | ||
|[[tips_tricks: | |[[tips_tricks: | ||
|WebView.CanGoForward() | | | |WebView.CanGoForward() | | | ||
+ | |WebView.Capture(filename) |captures jpeg of visible page | | ||
|WebView.ClearHistory() | | | |WebView.ClearHistory() | | | ||
|WebView.Execute( code ) | | | |WebView.Execute( code ) | | | ||
Line 37: | Line 40: | ||
|WebView.LoadHtml( html, | |WebView.LoadHtml( html, | ||
|WebView.LoadUrl( url,options ) | | | |WebView.LoadUrl( url,options ) | | | ||
+ | |WebView.Print() |KitKat or later only | | ||
|WebView.SetBackColor( color ) | | | |WebView.SetBackColor( color ) | | | ||
|WebView.SetBackGradient( color1, | |WebView.SetBackGradient( color1, | ||
Line 102: | Line 106: | ||
var html = "< | var html = "< | ||
html += "< | html += "< | ||
- | html += "</ | + | html += "</ |
html += "< | html += "< | ||
html += "</ | html += "</ |