WebView

class WebView()

CreateWebView()

Также поддерживает слудующие методы:

  • GetHeight

  • GetVisibility

  • GetWidth

  • SetBackground

  • SetBackColor

  • SetBackGradient

  • SetBackGradientRadial

  • SetMargins

  • SetPadding

  • SetPosition

  • SetSize

  • SetVisibility

WebView.Back()
WebView.Forward()
WebView.CanGoBack()
WebView.CanGoForward()
WebView.Execute(text)

Выполняет js код внутри страницы в webview

webview.Execute('alert();');
WebView.LoadHtml(html, baseFolder, options)

Загружает локальную html страницу.

Доп параметры:

  • allowzoom

  • autozoom

  • nolongtouch

  • wide

var html = '<html>...</html>'
web.LoadHtml(html, 'file://Sys/')
WebView.LoadUrl(url, options)
web.LoadUrl('http://gogle.com')
web.LoadUrl('file:///Sys/Html/Page.html')
WebView.SetOnProgress(callback)

Устанавливает обработчик процесса загрузки

web.SetOnProgress(function(progress){});
WebView.Back()
WebView.CanGoBack()
WebView.CanGoForward()
WebView.Capture(filename) captures jpeg of visible page()
WebView.ClearHistory()
WebView.Execute(code)
WebView.Forward()
WebView.GetAbsHeight()
WebView.GetAbsWidth()
WebView.GetHeight()
WebView.GetPosition()
WebView.GetType()
WebView.GetUrl() returns the current url()
WebView.GetVisibility()
WebView.GetWidth()
WebView.LoadHtml(html, base, options)
WebView.LoadUrl(url, options)
WebView.Print() KitKat or later only()
WebView.SetBackColor(color)
WebView.SetBackGradient(color1, color2, color3, p4, p5, p6, p7)
WebView.SetBackGradientRadial(x, y, r, color1, color2, color3, p7)
WebView.SetBackground(imagefile, options)
WebView.SetMargins(left, top, right, bottom)
WebView.SetOnProgress(callback)
WebView.SetPadding(width, height, top, bottom)
WebView.SetPosition(left, top, width, height)
WebView.SetScale(x, y)
WebView.SetSize(width, height)
WebView.SetVisibility(HideShow)