【发布时间】:2013-12-23 22:48:11
【问题描述】:
我有一个应用程序框架(在 JavaScript 中),它可以动态设置动态磁贴提要的 URL。在我的代码中,我有类似下面的内容,这适用于宽磁贴,但是当我将磁贴调整为“中”(或“小”)时,实时提要/更新消失了。如果我将大小调整回宽,它就可以了。没有其他磁贴设置(它使用默认设置)。
我的问题是:是否可以同时更新所有图块大小,还是我必须使用getTemplateContent() 和TileUpdater 的update() 方法构建一个完整的XML 对象?
我目前像这样更新定期 URL(同样,这适用于宽图块):
var updater = Windows.UI.Notifications.TileUpdateManager.createTileUpdaterForApplication();
updater.clear();
updater.stopPeriodicUpdate();
updater.enableNotificationQueue(true);
updater.startPeriodicUpdateBatch(
[ new Windows.Foundation.Uri(feedUrlString) ],
Windows.UI.Notifications.PeriodicUpdateRecurrence.halfHour
);
【问题讨论】:
标签: winjs windows-8.1 live-tile