Somebody know how to use live tiles with Phonegap and Windows Phone 7? [closed]

社会主义新天地 提交于 2019-12-24 08:19:23

问题


I'd like to know how to load some live tiles from a JSON from an URL but I have never used that option, could somebody give an idea how to do it?


回答1:


Live Tiles are not supported by the PhoneGap 'core', in other words, if you want to use this feature it will not be cross platform. In order to support platform specific features PhoenGap has the concept of plugins. You can find the live tile plugin here:

https://github.com/purplecabbage/phonegap-plugins/tree/master/WindowsPhone/LiveTiles

As per the docs, you can update it as follows:

navigator.plugins.liveTiles.updateAppTile(success, fail,
                  {title: 'title',
                   image:'Images/appbar.next.rest.png',
                   count: 5,
                   backTitle: 'Back title',
                   backContent:'Back side',
                   backImage : 'Images/appbar.close.rest.png'});


来源:https://stackoverflow.com/questions/15049363/somebody-know-how-to-use-live-tiles-with-phonegap-and-windows-phone-7

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