有人知道如何使用活动瓷砖与Phonegap和Windows Phone 7? [英] Somebody know how to use live tiles with Phonegap and Windows Phone 7?

查看:225
本文介绍了有人知道如何使用活动瓷砖与Phonegap和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆