How can I tell if my Titanium app is running on the simulator or not?

一个人想着一个人 提交于 2020-01-17 03:36:05

问题


I need to mock test data instead of trying to use the camera while debugging with the simulator.


回答1:


You should be able to use the value of Titanium.Platform.model for this. IIRC, it returns x86_64 on the simulator.



来源:https://stackoverflow.com/questions/13090844/how-can-i-tell-if-my-titanium-app-is-running-on-the-simulator-or-not

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!