-
Notifications
You must be signed in to change notification settings - Fork 2k
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 native public API documentations #11135
Comments
Ok, i will check which module is needed and suitable to be public in v3.6.0 for native developers. |
And should check if anything is available in ts, but missing documentation. |
JSB related documentation:
Where and how to write the API doc @PPpro |
JSB related documentation: jsb.onError |
Should |
If not, then how to listen some events in c++? Some application may do some operations based on these events in C++.
Does engine have these features? |
Why do developers need to write event registration code by C++ ? In general, he should do it in JS to subcribe
Yes, I found some code like : void SystemWindow::copyTextToClipboard(const std::string &text) {
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
[pasteboard clearContents];
NSString *tmp = [NSString stringWithCString:text.c_str() encoding:NSUTF8StringEncoding];
[pasteboard setString:tmp forType:NSPasteboardTypeString];
} |
It is ok not be public currently. Yep, we should add docs for |
@PPpro please describe where and how to write the API. |
docs added https://github.com/cocos/3d-tasks/blob/master/api-docs/native-binding-api.md |
Currently there is no doc about how to use jsb APIs, they are absolutely needed for native development. The missing content include but not limited to
@minggo please give a complete list and assign the tasks
Either we create manual docs which describes briefly all the APIs, or we generate all native APIs from JS Binding tools and make them available in API docs
The text was updated successfully, but these errors were encountered: