Skip to content

Commit

Permalink
Made LocalNotificationCenter Platform methods public so it can be use…
Browse files Browse the repository at this point in the history
…d in native apps.
  • Loading branch information
thudugala committed Feb 26, 2024
1 parent faca5ed commit a53ba66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class LocalNotificationCenter
/// Notify Local Notification Tapped.
/// </summary>
/// <param name="intent"></param>
internal static void NotifyNotificationTapped(Intent? intent)
public static void NotifyNotificationTapped(Intent? intent)
{
try
{
Expand Down Expand Up @@ -50,7 +50,7 @@ internal static void NotifyNotificationTapped(Intent? intent)
/// This way, users can easily identify and control multiple notification channels that have identical names.
/// </summary>
/// <param name="groupChannelRequests"></param>
internal static void CreateNotificationChannelGroups(IList<NotificationChannelGroupRequest> groupChannelRequests)
public static void CreateNotificationChannelGroups(IList<NotificationChannelGroupRequest> groupChannelRequests)
{
if (!OperatingSystem.IsAndroidVersionAtLeast(26))
{
Expand All @@ -77,7 +77,7 @@ internal static void CreateNotificationChannelGroups(IList<NotificationChannelGr
/// Create Notification Channel when API >= 26.
/// </summary>
/// <param name="channelRequests"></param>
internal static void CreateNotificationChannels(IList<NotificationChannelRequest> channelRequests)
public static void CreateNotificationChannels(IList<NotificationChannelRequest> channelRequests)
{
if (!OperatingSystem.IsAndroidVersionAtLeast(26))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class LocalNotificationCenter
/// and set it using this method
/// </summary>
/// <param name="notificationDelegate"></param>
internal static void SetUserNotificationCenterDelegate(UserNotificationCenterDelegate? notificationDelegate = null)
public static void SetUserNotificationCenterDelegate(UserNotificationCenterDelegate? notificationDelegate = null)
{
UNUserNotificationCenter.Current.Delegate = notificationDelegate ?? new UserNotificationCenterDelegate();
}
Expand Down Expand Up @@ -51,7 +51,7 @@ internal static void SetUserNotificationCenterDelegate(UserNotificationCenterDel
/// Reset Application Icon Badge Number when there are no notifications.
/// </summary>
/// <param name="uiApplication"></param>
internal static void ResetApplicationIconBadgeNumber(UIApplication uiApplication)
public static void ResetApplicationIconBadgeNumber(UIApplication uiApplication)
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Description>The local notification plugin provides a way to show local notifications from MAUI apps.</Description>
<PackageIcon>icon.png</PackageIcon>
<Copyright>Copyright © Elvin (Tharindu) Thudugala</Copyright>
<Version>11.1.0</Version>
<Version>11.1.1</Version>
<PackageReleaseNotes>Check: https://github.com/thudugala/Plugin.LocalNotification/releases </PackageReleaseNotes>
<IsPackable>True</IsPackable>

Expand Down

0 comments on commit a53ba66

Please sign in to comment.