Created
November 9, 2012 16:11
-
-
Save niyazpk/4046552 to your computer and use it in GitHub Desktop.
JavaScript for Windows8 live tiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var notifications = Windows.UI.Notifications; | |
var recurrence = notifications.PeriodicUpdateRecurrence.hour; | |
var urls = [ | |
new Windows.Foundation.Uri("http://localhost/tile1.xml"), | |
new Windows.Foundation.Uri("http://localhost/tile2.xml"), | |
new Windows.Foundation.Uri("http://localhost/tile3.xml"), | |
new Windows.Foundation.Uri("http://localhost/tile4.xml"), | |
new Windows.Foundation.Uri("http://localhost/tile5.xml") | |
]; | |
notifications.TileUpdateManager.createTileUpdaterForApplication().enableNotificationQueue(true); | |
notifications.TileUpdateManager.createTileUpdaterForApplication().startPeriodicUpdateBatch(urls, recurrence); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment