Skip to content

Commit a53ba66

Browse files
committed
Made LocalNotificationCenter Platform methods public so it can be used in native apps.
1 parent faca5ed commit a53ba66

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Source/Plugin.LocalNotification/Platforms/Android/LocalNotificationCenter.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public partial class LocalNotificationCenter
1616
/// Notify Local Notification Tapped.
1717
/// </summary>
1818
/// <param name="intent"></param>
19-
internal static void NotifyNotificationTapped(Intent? intent)
19+
public static void NotifyNotificationTapped(Intent? intent)
2020
{
2121
try
2222
{
@@ -50,7 +50,7 @@ internal static void NotifyNotificationTapped(Intent? intent)
5050
/// This way, users can easily identify and control multiple notification channels that have identical names.
5151
/// </summary>
5252
/// <param name="groupChannelRequests"></param>
53-
internal static void CreateNotificationChannelGroups(IList<NotificationChannelGroupRequest> groupChannelRequests)
53+
public static void CreateNotificationChannelGroups(IList<NotificationChannelGroupRequest> groupChannelRequests)
5454
{
5555
if (!OperatingSystem.IsAndroidVersionAtLeast(26))
5656
{
@@ -77,7 +77,7 @@ internal static void CreateNotificationChannelGroups(IList<NotificationChannelGr
7777
/// Create Notification Channel when API >= 26.
7878
/// </summary>
7979
/// <param name="channelRequests"></param>
80-
internal static void CreateNotificationChannels(IList<NotificationChannelRequest> channelRequests)
80+
public static void CreateNotificationChannels(IList<NotificationChannelRequest> channelRequests)
8181
{
8282
if (!OperatingSystem.IsAndroidVersionAtLeast(26))
8383
{

Source/Plugin.LocalNotification/Platforms/iOS/LocalNotificationCenter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public partial class LocalNotificationCenter
1616
/// and set it using this method
1717
/// </summary>
1818
/// <param name="notificationDelegate"></param>
19-
internal static void SetUserNotificationCenterDelegate(UserNotificationCenterDelegate? notificationDelegate = null)
19+
public static void SetUserNotificationCenterDelegate(UserNotificationCenterDelegate? notificationDelegate = null)
2020
{
2121
UNUserNotificationCenter.Current.Delegate = notificationDelegate ?? new UserNotificationCenterDelegate();
2222
}
@@ -51,7 +51,7 @@ internal static void SetUserNotificationCenterDelegate(UserNotificationCenterDel
5151
/// Reset Application Icon Badge Number when there are no notifications.
5252
/// </summary>
5353
/// <param name="uiApplication"></param>
54-
internal static void ResetApplicationIconBadgeNumber(UIApplication uiApplication)
54+
public static void ResetApplicationIconBadgeNumber(UIApplication uiApplication)
5555
{
5656
try
5757
{

Source/Plugin.LocalNotification/Plugin.LocalNotification.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Description>The local notification plugin provides a way to show local notifications from MAUI apps.</Description>
2222
<PackageIcon>icon.png</PackageIcon>
2323
<Copyright>Copyright © Elvin (Tharindu) Thudugala</Copyright>
24-
<Version>11.1.0</Version>
24+
<Version>11.1.1</Version>
2525
<PackageReleaseNotes>Check: https://github.com/thudugala/Plugin.LocalNotification/releases </PackageReleaseNotes>
2626
<IsPackable>True</IsPackable>
2727

0 commit comments

Comments
 (0)