win8_livetile_notification_text_add

Add text to a Live Tile notification.

Syntax:

win8_livetile_notification_text_add(text);


Argument Description
text The text to be displayed by the Live Tile.


Returns: N/A


Description

This function can be used to define a line of text 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.

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


Example:

var expiryTime;
expiryTime = date_current_datetime();
expiryTime = date_inc_minute(expiryTime, 5);
win8_livetile_notification_begin("tileWideText05");
win8_livetile_notification_expiry(expiryTime);
win8_livetile_notification_tag("tag0");
win8_livetile_notification_text_add("Current Score = " + string(score));
win8_livetile_notification_text_add("");
win8_livetile_notification_text_add("Current Lives = " + string(lives));
win8_livetile_notification_text_add("");
win8_livetile_notification_text_add("Current Time = " + string(time));
win8_livetile_notification_end();

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


Back: Windows 8
Next: win8_livetile_notification_image_add
© Copyright YoYo Games Ltd. 2018 All Rights Reserved