AnsweredAssumed Answered

Access the AppFramework from a background thread

Question asked by KGorton-esristaff Employee on Mar 29, 2016
Latest reply on Mar 29, 2016 by LDanzinger-esristaff

I would like to leverage components of the AppFramework while my app is backgrounded on the device. Is the AppFramework (or other Qt lbraries such as QtPositioning) available to the javascript file that provides the background functions to the WorkerScript element in the UI thread? Our own doc says, "On mobile devices where you have limited resources and variable network speed it is advisable to perform long running tasks on a background thread." (Performance considerations—ArcGIS Runtime SDK for Qt | ArcGIS for Developers ) so it would seem this is possible, but how is this accomplished? The same import statements used in the qml file don't work in the js file. Any help is appreciated and actual examples will be warmly welcomed.

Thanks.

Outcomes