/// <summary> /// Raises activated event. /// </summary> public void OnActivated(TrayIndicator widget, EventArgs e) { using (widget.Platform.Context) widget.OnActivated(e); }
/// <summary> /// Shows the current notification. /// </summary> /// <remarks> /// On some platforms like Gtk and Windows 10 the indicator /// is not needed, while on the others like Windows 7 it's required. /// /// You can find out if the indicator is needed by /// looking at <see cref="RequiresTrayIndicator"/> property. /// </remarks> /// <param name="indicator">Indicator to use to show the notification.</param> public void Show(TrayIndicator indicator = null) => Handler.Show(indicator);