/// <inheritdoc/> public async Task <string> ShowNotificationAsync(NotificationContent content) { var notification = new ToastNotification(content.GetXml()); string tag = Guid.NewGuid().ToString(); notification.Tag = tag; notification.Group = "Toasts"; ToastNotifier.Show(notification); return(tag); }
/// <inheritdoc/> public async Task <string> ShowAlarmAsync(NotificationContent content, DateTimeOffset showTime) { var notification = new ScheduledToastNotification(content.GetXml(), showTime); string tag = Guid.NewGuid().ToString(); notification.Tag = tag; notification.Group = "Alarms"; ToastNotifier.AddToSchedule(notification); return(tag); }