33. using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
#if NETFX_CORE
using Windows.UI.Notifications;
#endif
namespace UnityWinRTPlugin
{
public class LiveTile
{
public bool UpdateTile(string title, string text)
{
#if NETFX_CORE
var tile = TileUpdateManager.GetTemplateContent(TileTemplateType.TileSquareText02);
var elements = tile.GetElementsByTagName("text");
elements[0].AppendChild(tile.CreateTextNode(title));
elements[1].AppendChild(tile.CreateTextNode(text));
TileUpdateManager.CreateTileUpdaterForApplication().Update(new TileNotification(tile));
#endif
return true;
}
}
}