aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/Desktop.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS_TheReturn/Desktop.cs')
-rw-r--r--ShiftOS_TheReturn/Desktop.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/ShiftOS_TheReturn/Desktop.cs b/ShiftOS_TheReturn/Desktop.cs
index bc17a8e..a5e7f43 100644
--- a/ShiftOS_TheReturn/Desktop.cs
+++ b/ShiftOS_TheReturn/Desktop.cs
@@ -102,7 +102,14 @@ namespace ShiftOS.Engine
/// Gets the name of the desktop.
/// </summary>
string DesktopName { get; }
-
+
+ /// <summary>
+ /// Show a notification on the desktop.
+ /// </summary>
+ /// <param name="app">An application ID (for determining what system icon to show the notification alongside)</param>
+ /// <param name="title">The title of the notification.</param>
+ /// <param name="message">Isn't this.... self explanatory?</param>
+ void PushNotification(string app, string title, string message);
/// <summary>
/// Performs most of the skinning and layout handling for the desktop.
@@ -266,6 +273,14 @@ namespace ShiftOS.Engine
{
_desktop.HideAppLauncher();
}
+
+ public static void PushNotification(string app, string title, string msg)
+ {
+ InvokeOnWorkerThread(() =>
+ {
+ _desktop.PushNotification(app, title, msg);
+ });
+ }
}
// sorry i almost killed everything :P
}