From 8a52083e5fdd6bc001ce3c07c9b17de9c2a70495 Mon Sep 17 00:00:00 2001 From: Elvin Thudugla Date: Sat, 6 Jul 2024 12:00:29 +1200 Subject: [PATCH] code fix --- .../LocalNotification.Sample/MauiProgram.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Sample/Direct Maui/LocalNotification.Sample/MauiProgram.cs b/Sample/Direct Maui/LocalNotification.Sample/MauiProgram.cs index 75220a5a..b4f08f32 100644 --- a/Sample/Direct Maui/LocalNotification.Sample/MauiProgram.cs +++ b/Sample/Direct Maui/LocalNotification.Sample/MauiProgram.cs @@ -1,6 +1,7 @@ using Microsoft.Extensions.Logging; using Plugin.LocalNotification; using Plugin.LocalNotification.AndroidOption; +using Plugin.LocalNotification.iOSOption; namespace LocalNotification.Sample; @@ -21,8 +22,8 @@ public static MauiApp CreateMauiApp() { config.AddCategory(new NotificationCategory(NotificationCategoryType.Status) { - ActionList = new HashSet(new List() - { + ActionList = + [ new(100) { Title = "Hello", @@ -36,7 +37,7 @@ public static MauiApp CreateMauiApp() }, IOS = { - Action = Plugin.LocalNotification.iOSOption.iOSActionType.Foreground + Action = iOSActionType.Foreground }, Windows = { @@ -56,14 +57,14 @@ public static MauiApp CreateMauiApp() }, IOS = { - Action = Plugin.LocalNotification.iOSOption.iOSActionType.Destructive + Action = iOSActionType.Destructive }, Windows = { LaunchAppWhenTapped = false } } - }) + ] }) .AddAndroid(android => {