win8_livetile_notification_text_add

Add text to a Live Tile notification.

Syntax:

GML Code Example

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:

GML Code 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.





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