STAY IN TOUCH

and receive our newsletter to get the latest news and tips.


Tiles → pin pictures

function tiles → pin pictures(
title : String,
counter : Number,
icon : Picture,
pictures : Collection of Picture)
Pins or updates the default tile with custom pictures.
This action creates a tile to launch the script using the pictures. Since tiles are specified to the platform you are running, their final appearance might be quite different.
This code might not work on your current device: missing Tiles capabilities.
The following snippet asks the user for a bunch of pictures and creates a tile from them.
var pic := media → choose picture
var pics := collections → create picture collection
for 0 ≤ i < 3 do
pics → add(media → choose picture)
end for
tiles → pin pictures("the title", 20, pic, pics)
The following information provides more details for each platform where tiles are supported.

Windows Phone 8

The tile uses the cycle template which allows to rotate between up to 9 images.