Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 20 files). Show all
Unified · Split
| @@ -504,6 +504,20 @@ public slots: · 503 unmodified lines | |||
| 504 | */ | 504 | */ |
| 505 | int openMessageBox(QString title, QString text, int buttons, int defaultButton); | 505 | int openMessageBox(QString title, QString text, int buttons, int defaultButton); |
| 506 | 506 | ||
| 507 | /**jsdoc | ||
| 508 | * Open the given resource in the Interface window or in a web browser depending on the url scheme | ||
| 509 | * @function Window.openUrl | ||
| 510 | * @param {string} url - The resource to open | ||
| 511 | */ | ||
| 512 | void openUrl(const QUrl& url); | ||
| 513 | |||
| 514 | /**jsdoc | ||
| 515 | * (Android only) Open the requested Activity and optionally back to the scene when the activity is done | ||
| 516 | * @function Window.openAndroidActivity | ||
| 517 | * @param {string} activityName - The name of the activity to open. One of "Home", "Login" or "Privacy Policy" | ||
| 518 | */ | ||
| 519 | void openAndroidActivity(const QString& activityName, const bool backToScene); | ||
| 520 | |||
| 507 | /**jsdoc | 521 | /**jsdoc |
| 508 | * Update the content of a message box that was opened with {@link Window.openMessageBox|openMessageBox}. | 522 | * Update the content of a message box that was opened with {@link Window.openMessageBox|openMessageBox}. |
| 509 | * @function Window.updateMessageBox | 523 | * @function Window.updateMessageBox |