win8_livetile_notification_end

End the definition of a Live Tile notification.

Syntax:

GML Code Example

win8_livetile_notification_end();


Returns: N/A


Description

This function must be called after defining a Live Tile notification to "push" it onto the Windows UI Live Tile for your game. The notification will be shown on the Live Tile for your game unless you have previously enabled queuing (using, win8_livetile_queue_enable), in which case it will be added onto the notification queue and will be shown after all previous notifications have been shown. This function requires you to have previously selected a Live tile template using win8_livetile_notification_begin, and set up the necessary text, images and tags using the appropriate Windows 8 functions.

NOTE: This function is also used to push notifications 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("TileSquarePeekImageAndText01");
 win8_livetile_notification_expiry(expiryTime);
 win8_livetile_notification_tag("tag0");
 win8_livetile_notification_text_add("Current Score = " + string(score));
 win8_livetile_notification_image_add("ms-appx:///" + working_directory + "ScoreTile.png");
 win8_livetile_notification_end();
 

The above code will push a new Live Tile notification through to Windows 8, with some text and an image, and the tile will be 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