Skip to content

Instantly share code, notes, and snippets.

@lfryc
Forked from edewit/windows.md
Created August 29, 2014 11:51
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 lfryc/c522a792076e880cffe3 to your computer and use it in GitHub Desktop.
Save lfryc/c522a792076e880cffe3 to your computer and use it in GitHub Desktop.

##Toast Notifications

toast specs.

{
    "title" : "The title",
    "alert" :"HELLO!",
    "duration" : "short|long",
    "launch" : {
        "type": "toast",
        "param1": "12345",
        "param2": "67890"
    }
}

###Audio

{
    "sound": "reminder"
}

###Badges

{
    "badge": 8
}

In addition to numbers, there is also a fixed set of image glyphs that can be set on the badge badge spec

{
    "badge": "busy"
}

###Tiles There are tree Tile templates: flip, iconic, and cycle.

###iconic example:

{
    "template": "iconic",
    "title" : "hello",
    "count" : 10,
    "wideContent1" : "Lorem ipsum",
    "wideContent2" : "Amet consectetuer",
    "smallIconImage" : "icon uri e.g. /Assets/Tiles/icon.jpg"
}

###cycle example:

{
    "template" : "cycle",
    "title" : "Contoso",
    "count" : 10,
    "smallBackgroundImage" : "/Assets/Tiles/smallBackgroundImage.jpg",
    "cycleImages" :
        [
          "/Assets/Tiles/cycleImage1.jpg", 
          "/Assets/Tiles/cycleImage2.jpg",
          "/Assets/Tiles/cycleImage3.jpg",
          "/Assets/Tiles/cycleImage4.jpg",
          "/Assets/Tiles/cycleImage5.jpg",
          "/Assets/Tiles/cycleImage6.jpg",
          "/Assets/Tiles/cycleImage7.jpg",
          "/Assets/Tiles/cycleImage8.jpg",
          "/Assets/Tiles/cycleImage9.jpg"
        ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment