AppUtils - Verge3D User Manual - Soft8Soft
Description: Learn how to use AppUtils in your interactive 3D apps made with Verge3D

# AppUtils

A class containing useful utility functions for your 3D apps.

## Methods

### # .addToAppList(app : App)

Add `app` to the global `v3d.apps` array. Normally, this method is executed by the App constructor.

### # .getPageParams(windowObj : Window) → Object

Parse page GET parameters and return object with parsed key-value data.

### # .isJS(url : String) → Boolean

Check if the `url` parameter represents a JavaScript file.

### # .isXML(url : String) → Boolean

Check if the `url` parameter represents an XML file.

### # .loadScript(url : String, appendElem : HTMLElement, callback : Function)

- url — loaded script URL.
- appendElem — the HTML element to append loaded script to.
- callback — load event listener.

Load and execute the given JavaScript file.

### # .printPerformanceInfo(scope : App, delta : Float)

Collect and print performance info profile. See App.printPerformanceInfo for more info.

### # .registerServiceKeys(app : App)

Register the service keys (like the triple tilda for the service menu) for the running application.

### # .removeFromAppList(app : App)

Remove `app` from the global `v3d.apps` array. Normally, this method is executed by App.dispose.

### # .unregisterServiceKeys(app : App)

Unregister the service keys for the running application.

### # .updatePageParam(url : String, param : String, paramVal : Any) → String

- url — input URL.
- param — parameter name.
- paramVal — parameter value.

Update GET parameter for the passed `url` and return an updated URL.

## Source

For more info on how to obtain the source code of this module see this page.