Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UIWebView JS Binding #1518

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
227 changes: 227 additions & 0 deletions frameworks/js-bindings/bindings/auto/api/jsb_cocos2dx_ui_auto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5901,3 +5901,230 @@ LayoutComponent : function (
},

};

/**
* @class WebView
*/
ccui.WebView = {

/**
* @method loadURL
* @param {String} arg0
*/
loadURL : function (
str
)
{
},

/**
* @method canGoBack
* @return {bool}
*/
canGoBack : function (
)
{
return false;
},

/**
* @method loadHTMLString
* @param {String} arg0
* @param {String} arg1
*/
loadHTMLString : function (
str,
str
)
{
},

/**
* @method setOnJSCallback
* @param {function} arg0
*/
setOnJSCallback : function (
func
)
{
},

/**
* @method setOnShouldStartLoading
* @param {function} arg0
*/
setOnShouldStartLoading : function (
func
)
{
},

/**
* @method goForward
*/
goForward : function (
)
{
},

/**
* @method goBack
*/
goBack : function (
)
{
},

/**
* @method setJavascriptInterfaceScheme
* @param {String} arg0
*/
setJavascriptInterfaceScheme : function (
str
)
{
},

/**
* @method evaluateJS
* @param {String} arg0
*/
evaluateJS : function (
str
)
{
},

/**
* @method getOnJSCallback
* @return {function}
*/
getOnJSCallback : function (
)
{
return std::function<void (cocos2d::experimental::ui::WebView , std::basic_string<char> &)>;
},

/**
* @method reload
*/
reload : function (
)
{
},

/**
* @method setScalesPageToFit
* @param {bool} arg0
*/
setScalesPageToFit : function (
bool
)
{
},

/**
* @method canGoForward
* @return {bool}
*/
canGoForward : function (
)
{
return false;
},

/**
* @method loadData
* @param {cc.Data} arg0
* @param {String} arg1
* @param {String} arg2
* @param {String} arg3
*/
loadData : function (
data,
str,
str,
str
)
{
},

/**
* @method getOnShouldStartLoading
* @return {function}
*/
getOnShouldStartLoading : function (
)
{
return std::function<bool (cocos2d::experimental::ui::WebView , std::basic_string<char> &)>;
},

/**
* @method loadFile
* @param {String} arg0
*/
loadFile : function (
str
)
{
},

/**
* @method stopLoading
*/
stopLoading : function (
)
{
},

/**
* @method setOnDidFinishLoading
* @param {function} arg0
*/
setOnDidFinishLoading : function (
func
)
{
},

/**
* @method setOnDidFailLoading
* @param {function} arg0
*/
setOnDidFailLoading : function (
func
)
{
},

/**
* @method getOnDidFinishLoading
* @return {function}
*/
getOnDidFinishLoading : function (
)
{
return std::function<void (cocos2d::experimental::ui::WebView , std::basic_string<char> &)>;
},

/**
* @method getOnDidFailLoading
* @return {function}
*/
getOnDidFailLoading : function (
)
{
return std::function<void (cocos2d::experimental::ui::WebView , std::basic_string<char> &)>;
},

/**
* @method create
* @return {cc.experimental::ui::WebView}
*/
create : function (
)
{
return cc.experimental::ui::WebView;
},

};
Loading