win8_livetile_notification_image_add

Add images to a Live Tile notification.

Syntax:

GML Code Example

win8_livetile_notification_image_add(image);


Argument Description
image The template that the live tile notification should take (see below)


Returns: N/A


Description

This function can be used to define an image for a Live Tile notification. You must have called win8_livetile_notification_begin before using this function, and you may need to call this it more than once if the Live Tile Template requires it. The image can be either from a local source (in which case the directory to get the file from must be preceded by ms-appx:///. See the example given below.) or from a URL.

NOTE: This function can also apply to Secondary tiles when used along with win8_livetile_notification_secondary_begin.


Example:

GML Code Example

var expiryTime;
 expiryTime = date_current_datetime();
 expiryTime = date_inc_minute(expiryTime, 5);
 win8_livetile_notification_begin("tileWideImageCollection");
 win8_livetile_notification_expiry(expiryTime);
 win8_livetile_notification_tag("tag0");
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "WideTile_Logo.png");
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "WideTile_SmallScreen_1.png");
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "WideTile_SmallScreen_2.png");
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "WideTile_SmallScreen_3.png");
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "WideTile_SmallScreen_4.png");
 win8_livetile_notification_end();
 

The above code will push a new Live Tile notification through to Windows 8, with 5 images will shown for 5 minutes.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here