/// <summary> /// Adds a ScheduledToastNotification for later display by Windows. /// </summary> /// <param name="scheduledToast">The scheduled toast notification, which includes its content and timing instructions.</param> public void AddToSchedule(ScheduledToastNotification scheduledToast) { #if WIN32 ToastNotificationManagerCompat.PreRegisterIdentityLessApp(); PreprocessScheduledToast(scheduledToast); #endif _notifier.AddToSchedule(scheduledToast); }
/// <summary> /// Displays the specified toast notification. /// </summary> /// <param name="notification">The object that contains the content of the toast notification to display.</param> public void Show(ToastNotification notification) { #if WIN32 PreprocessToast(notification); #endif _notifier.Show(notification); #if WIN32 ToastNotificationManagerCompat.SetHasSentToastNotification(); #endif }