blob: b89cfbd1c96198ea0768b1f0dc2edce249c5851f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
---@meta
---@class ccui.WebView :ccui.Widget
local WebView={ }
ccui.WebView=WebView
---* SetOpacity of webview.
---@param opacity float
---@return self
function WebView:setOpacityWebView (opacity) end
---* Gets whether this WebView has a back history item.<br>
---* return WebView has a back history item.
---@return boolean
function WebView:canGoBack () end
---* Sets the main page content and base URL.<br>
---* param string The content for the main page.<br>
---* param baseURL The base URL for the content.
---@param string string
---@param baseURL string
---@return self
function WebView:loadHTMLString (string,baseURL) end
---* Goes forward in the history.
---@return self
function WebView:goForward () end
---* Goes back in the history.
---@return self
function WebView:goBack () end
---* Set WebView should support zooming. The default value is false.
---@param scalesPageToFit boolean
---@return self
function WebView:setScalesPageToFit (scalesPageToFit) end
---* Loads the given fileName.<br>
---* param fileName Content fileName.
---@param fileName string
---@return self
function WebView:loadFile (fileName) end
---@overload fun(string:string,boolean:boolean):self
---@overload fun(string:string):self
---@param url string
---@param cleanCachedData boolean
---@return self
function WebView:loadURL (url,cleanCachedData) end
---* Set whether the webview bounces at end of scroll of WebView.
---@param bounce boolean
---@return self
function WebView:setBounces (bounce) end
---* Evaluates JavaScript in the context of the currently displayed page.
---@param js string
---@return self
function WebView:evaluateJS (js) end
---* set the background transparent
---@return self
function WebView:setBackgroundTransparent () end
---* Get the Javascript callback.
---@return function
function WebView:getOnJSCallback () end
---* Gets whether this WebView has a forward history item.<br>
---* return WebView has a forward history item.
---@return boolean
function WebView:canGoForward () end
---* Stops the current load.
---@return self
function WebView:stopLoading () end
---* getOpacity of webview.
---@return float
function WebView:getOpacityWebView () end
---* Reloads the current URL.
---@return self
function WebView:reload () end
---* Set javascript interface scheme.<br>
---* see WebView::setOnJSCallback()
---@param scheme string
---@return self
function WebView:setJavascriptInterfaceScheme (scheme) end
---* Allocates and initializes a WebView.
---@return self
function WebView:create () end
---*
---@return self
function WebView:onEnter () end
---* Toggle visibility of WebView.
---@param visible boolean
---@return self
function WebView:setVisible (visible) end
---*
---@return self
function WebView:onExit () end
---* Default constructor.
---@return self
function WebView:WebView () end
|