本文介绍了如何判断我的 Titanium 应用程序是否在模拟器上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要模拟测试数据,而不是在使用模拟器调试时尝试使用相机.
I need to mock test data instead of trying to use the camera while debugging with the simulator.
推荐答案
您应该能够为此使用 Titanium.Platform.model
的值.IIRC,它在模拟器上返回x86_64
.
You should be able to use the value of Titanium.Platform.model
for this. IIRC, it returns x86_64
on the simulator.
这篇关于如何判断我的 Titanium 应用程序是否在模拟器上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!