Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thudugala committed Jul 6, 2024
1 parent 445496c commit 8a52083
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sample/Direct Maui/LocalNotification.Sample/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Microsoft.Extensions.Logging;
using Plugin.LocalNotification;
using Plugin.LocalNotification.AndroidOption;
using Plugin.LocalNotification.iOSOption;

namespace LocalNotification.Sample;

Expand All @@ -21,8 +22,8 @@ public static MauiApp CreateMauiApp()
{
config.AddCategory(new NotificationCategory(NotificationCategoryType.Status)
{
ActionList = new HashSet<NotificationAction>(new List<NotificationAction>()
{
ActionList =
[
new(100)
{
Title = "Hello",
Expand All @@ -36,7 +37,7 @@ public static MauiApp CreateMauiApp()
},
IOS =
{
Action = Plugin.LocalNotification.iOSOption.iOSActionType.Foreground
Action = iOSActionType.Foreground
},
Windows =
{
Expand All @@ -56,14 +57,14 @@ public static MauiApp CreateMauiApp()
},
IOS =
{
Action = Plugin.LocalNotification.iOSOption.iOSActionType.Destructive
Action = iOSActionType.Destructive
},
Windows =
{
LaunchAppWhenTapped = false
}
}
})
]
})
.AddAndroid(android =>
{
Expand Down

0 comments on commit 8a52083

Please sign in to comment.