IBM Worklight-Shell组件

IBM Worklight-Shell组件,shell,ibm-mobilefirst,Shell,Ibm Mobilefirst,当我创建一个shell组件时,在shell组件公共文件夹中有一个名为preview的文件夹。我需要知道这个文件夹有什么用。我试图使用IBM模块中指定的以下要点来理解它 preview: can be used to implement native functionality stubs for simulation in the Worklight Console preview instead of receiving exceptions 我仍然不清楚这一点。谁能对此给出一个清晰的想法。

当我创建一个shell组件时,在shell组件公共文件夹中有一个名为preview的文件夹。我需要知道这个文件夹有什么用。我试图使用IBM模块中指定的以下要点来理解它

preview: can be used to implement native functionality stubs for simulation in the Worklight Console preview instead of receiving exceptions
我仍然不清楚这一点。谁能对此给出一个清晰的想法。
提前谢谢

我认为shell组件预览文件夹的主要思想是模拟其本机行为,比如说,您希望在给定区域上使用Google Maps API

对于开发shell的用户,他们没有最终的应用程序来测试其行为。因此,他们可以创建一些模拟,比如地图图片或Android TOAST图片,让他们自己在shell中工作