2021-02-21 20:03:24 +00:00
|
|
|
[CCode (cheader_filename = "gobject/winrt-glib.h")]
|
|
|
|
namespace winrt.Windows.UI.Notifications {
|
2021-02-21 23:13:23 +00:00
|
|
|
[CCode (cname = "NotificationCallbackSimple", has_target = true)]
|
2021-02-21 20:03:24 +00:00
|
|
|
public delegate void NotificationCallbackSimple();
|
|
|
|
|
2021-02-21 23:13:23 +00:00
|
|
|
[CCode (cname = "NotificationCallbackActivated", has_target = true)]
|
|
|
|
public delegate void NotificationCallbackActivated(string? arguments, string[]? userInput);
|
2021-02-21 20:03:24 +00:00
|
|
|
|
|
|
|
// [CCode (cname = "Notification_Callback_Dismissed", has_target = true)]
|
|
|
|
// public delegate void NotificationCallbackDismissed(DismissedReason reason);
|
|
|
|
|
|
|
|
[CCode (type_id = "winrt_windows_ui_notifications_toast_notification_get_type ()")]
|
|
|
|
public class ToastNotification : GLib.Object {
|
|
|
|
public ToastNotification(string doc);
|
|
|
|
public bool ExpiresOnReboot { get; set; }
|
|
|
|
public string Tag { get; set; } // TODO: check if valac is cleaning this string
|
|
|
|
public string Group { get; set; }
|
2021-02-21 23:13:23 +00:00
|
|
|
public winrt.EventToken Activated(owned NotificationCallbackActivated handler);
|
2021-02-21 20:03:24 +00:00
|
|
|
public void RemoveActivatedAction(winrt.EventToken token);
|
|
|
|
}
|
2021-02-22 10:41:39 +00:00
|
|
|
|
|
|
|
[CCode (type_id = "winrt_windows_ui_notifications_toast_notifier_get_type ()")]
|
|
|
|
public class ToastNotifier : GLib.Object {
|
|
|
|
public ToastNotifier(string aumid);
|
|
|
|
public void Show(ToastNotification notification);
|
|
|
|
public void Hide(ToastNotification notification);
|
|
|
|
}
|
2021-02-21 20:03:24 +00:00
|
|
|
}
|