29 lines
663 B
C#

using System;
using gehGassi.LocalNotifications.Platforms;
namespace gehGassi.LocalNotifications
{
public static class NotificationCenter
{
private static INotificationService _current
{
get
{
#if ANDROID
return new NotificationService();
#elif IOS
return new NotificationService();
#endif
}
}
/// <summary>
/// Platform specific INotificationService.
/// </summary>
public static INotificationService Current
{
get => _current ?? throw new InvalidOperationException("Plugin not found");
}
}
}