Skip to content

Commit bbc066a

Browse files
committed
add abstract base class for simple usage
1 parent 3ff89ff commit bbc066a

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using AndroidX.Core.App;
2+
3+
namespace Com.OneSignal.Android
4+
{
5+
public abstract class NotificationExtenderBase : Java.Lang.Object, NotificationCompat.IExtender
6+
{
7+
public abstract NotificationCompat.Builder Extend(NotificationCompat.Builder builder);
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Android.Content;
2+
3+
namespace Com.OneSignal.Android
4+
{
5+
public abstract class OSRemoteNotificationReceivedBase : Java.Lang.Object, OneSignal.IOSRemoteNotificationReceivedHandler
6+
{
7+
public abstract void RemoteNotificationReceived(Context ctx, OSNotificationReceivedEvent ev);
8+
}
9+
}

OneSignal.Android.Binding/OneSignal.Android.Binding.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<Reference Include="System.Core" />
4444
<Reference Include="Mono.Android" />
4545
</ItemGroup>
46+
<ItemGroup>
47+
<Compile Include="Additions\*.cs"/>
48+
</ItemGroup>
4649
<ItemGroup>
4750
<None Include="Additions\AboutAdditions.txt" />
4851
<None Include="Jars\AboutJars.txt" />

0 commit comments

Comments
 (0)