Files
AvaloniaDesktopNotifications/DesktopNotifications.Apple/AppleNotificationManager.cs
T
Luis von der Eltz 722a5c35a3 Fix some warnings
2021-02-06 17:25:35 +01:00

34 lines
859 B
C#

using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
#pragma warning disable 0067
namespace DesktopNotifications.Apple
{
public class AppleNotificationManager : INotificationManager
{
[DllImport("DesktopNotifications.Apple.Native.dylib")]
private static extern void ShowNotification();
public void Dispose()
{
}
public event EventHandler<NotificationActivatedEventArgs> NotificationActivated;
public event EventHandler<NotificationDismissedEventArgs> NotificationDismissed;
public ValueTask Initialize()
{
return default;
}
public ValueTask ShowNotification(Notification notification, DateTimeOffset? expirationTime = null)
{
ShowNotification();
return default;
}
}
}