Provides a model for the list of the currently installed WebApps. More...
Import Statement: | import . |
Besides providing information about the currently installed webapps, it can typically be used in conjunction with the UnityWebApps QML component that already takes care of making sure that the Unity WebApps API is available to a given QML WebView. What the UnityWebappsAppModel can provide is a way to ask the WebApp QML component to inject the userscripts corresponding to a given webapp along with the API itself.
UnityWebApps { id: webapps name: webappName bindee: webview model: UnityWebappsAppModel {} }
If the WebApp whose name is specified as part of the "name" property is found in the specified model, its scripts (along with their dependancies) will be injected. Otherwise only the API will be made available.
The searchPath property can be use to alter the path where the model searches for installed webapps. The default search path is set to /usr/share/unity-webapps. The searchPath property should only be set to valid (existing and readable) paths, all other "values" are ignored.