有人知道如何使用活动瓷砖与Phonegap和Windows Phone 7? [英] Somebody know how to use live tiles with Phonegap and Windows Phone 7?
问题描述
我想知道如何从一个URL加载一些活动的瓷砖,但我从来没有使用过这个选项,有人会给出一个想法如何做呢?
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?
推荐答案
PhoneGap'core'不支持Live Tiles,换句话说,如果要使用此功能,它不会跨平台。为了支持平台的特定功能PhoenGap有插件的概念。您可以在这里找到活瓷砖插件:
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
按照docs,您可以更新它如下:
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'});
这篇关于有人知道如何使用活动瓷砖与Phonegap和Windows Phone 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!