Skip to content

Instantly share code, notes, and snippets.

@edewit
Last active August 29, 2015 14:04
Show Gist options
  • Save edewit/305d76c31960aa6254a9 to your computer and use it in GitHub Desktop.
Save edewit/305d76c31960aa6254a9 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