This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
RobloxHybrid API Reference
---
- []()
Usage
---
In order to use this library, include the following file in your html
```html
<script src="roblox.js" type="text/javascript"></script>
```
Then, you can reference the modules, for example Game, in the following way
```js
Roblox.Hybrid.Game.startWithPlaceID("XXX", myCallback);
```
Each module also has a "supports" function, that executes asynchronously and checks if the queried function is supported natively in the current platform.
```js
Roblox.Hybrid.Game.supports("followUser", function(isSupported) {
if(isSupported) {
Roblox.Hybrid.Game.followUser("XXXXX", myCallback);
} else {
// Web implementation
}
});
```
How to generate the compiled RobloxHybrid.js file
---
"roblox.js" is compiled and optimized with [Google Closure Compiler](https://github.com/google/closure-compiler)
In order to run this tool execute:
```sh
$ ./build_js.sh
```
How to generate this documentation
---
```sh
$ cd docs
$ ./build_doc.sh
```