如何创建 JavaScript Blackberry Widget 扩展?
在最近的博客中在宣布 Blackberry Widgets 的帖子中,有关在 Blackberry Widget 中获取 Java 库功能的内容如下(重点是我添加的):
如果 RIM 不向我提供怎么办 我正在寻找的 JavaScript API?
RIM 将继续添加新内容 适用于 BlackBerry 的 JavaScript API 小部件。大多数不需要新的 BlackBerry 设备软件升级至 被使用。 Java 开发人员还可以 创建自己的自定义 JavaScript BlackBerry Widget 扩展将是 与他们的小部件一起打包。
下图描述了打包小部件的架构:
他们还用 sp;
< strong>如何实现“链接的 JavaScript 扩展”并在小部件中使用它?
In a recent blog post announcing Blackberry Widgets the following was said about getting Java library functionality in a Blackberry Widget (emphasis added by me):
What if RIM doesn't provide me with
the JavaScript API I am looking for?RIM will continue to add new
JavaScript APIs for BlackBerry
Widgets. Most will not require new
BlackBerry Device Software upgrades to
be used. Java developers can also
create their own custom JavaScript
BlackBerry Widget Extension to be
packaged with their widget.
They also go on to describe the architecture of a packaged widget with the following diagram:
How can I implement a "Linked JavaScript Extension" and use it in a Widget?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该查看官方 Blackberry Widgets 网站,其中有一些链接您将需要的文档和 API一直用于开发小部件。
我从他们的文档中快速浏览了演示应用程序,您基本上编写了标准的 HTML、CSS 和 Javascript。然后,Javascript 可以调用 API 函数,并且您可以通过设置 config.xml 文件来设置可以访问哪些“功能”(使用/包含语句)。
You should check out The official Blackberry Widgets site which has some links to the documentation and API that you will been for developing widgets.
I've had a quick run through the demo app from their documentation and you basically write standard HTML, CSS and Javascript. The Javascript can then call API functions, and you setup which 'features' (using/include statements) can be accessed by setting up the config.xml file.
答案在 RIM 昨天发布的新闻稿。
使用
net.rim.device.api.script
包接口。The answer to this is in a press release from RIM that came out yesterday.
Use the
net.rim.device.api.script
package interface.