简体   繁体   English

小部件生命周期?

[英]Widget Lifecycle?

Alot of phone OSes are starting to support W3C widgets, or something very similar. 许多电话操作系统都开始支持W3C小部件或类似的东西。

I am still a little confused about what exactly widgets can do? 我仍然对小部件到底能做什么感到有些困惑?

All the example widgets I have seen have just a 'index.html' page. 我看到的所有示例小部件都只有一个“ index.html”页面。 Are widgets allowed to have multiple pages they can navigate between? 窗口小部件是否允许有多个页面可以浏览?

Also do widgets have any mechanism to run in the background? 小部件还可以在后台运行任何机制吗?

Any good online documentation about W3C widget lifecycle? 关于W3C小部件生命周期的任何良好的在线文档? or blackberry widgets? 或黑莓小部件?

Widgets can do most things a native mobile application can do when augmented with support for the W3C Device API specs or the WAC profile that includes everything from accelerometers to roaming status. 当增加对W3C设备API规范WAC配置文件的支持(包括从加速度计到漫游状态的所有内容)的支持时,小部件可以完成本机移动应用程序可以执行的大多数操作。

Without these extensions, Widgets can still use local storage, preferences (a special type of HTML5 storage), app cache and other HTML5 goodies. 没有这些扩展,小部件仍可以使用本地存储,首选项(HTML5存储的一种特殊类型),应用程序缓存和其他HTML5好东​​西。

W3C Widgets can also package localized content, so one Widget can be deployed for all locales. W3C小部件还可以打包本地化的内容,因此可以为所有语言环境部署一个小部件。

Also, there are other types of W3C Widgets implementations - for example desktop ( Opera ) and for web widgets ( Apache Wookie ) 此外,还有其他类型的W3C窗口小部件实现-例如,桌面( Opera )和Web窗口小部件( Apache Wookie

This will probably not answer your question, but I can give you an example of an application that was developed for the mobile using W3C widgets. 这可能不会回答您的问题,但是我可以举一个使用W3C小部件为移动设备开发的应用程序示例。 Here is a blog post that describes their use: 这是描述其用法的博客文章:

http://uxebu.com/blog/2010/02/15/eventninja-a-mobile-cross-platform-app/ http://uxebu.com/blog/2010/02/15/eventninja-a-mobile-cross-platform-app/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM