Skip to content

Instantly share code, notes, and snippets.

@niyazpk
Created November 9, 2012 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niyazpk/4046552 to your computer and use it in GitHub Desktop.
Save niyazpk/4046552 to your computer and use it in GitHub Desktop.
JavaScript for Windows8 live tiles
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