From ea12ac10f09c2ab9db003e0fddbd63be125ec0f3 Mon Sep 17 00:00:00 2001 From: "Elvin (Tharindu)" Date: Wed, 26 Sep 2018 14:26:57 +1200 Subject: [PATCH] documentation update --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c1fea369..b1da958d 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The local notification plugin provides a way to show local notifications from Xa # Usage -## Send local notification +### Send local notification ```csharp var notificationService = DependencyService.Get(); @@ -30,14 +30,14 @@ var notification = new Plugin.LocalNotification.LocalNotification notificationService.Send(notification); ``` -## Cancel a local notification +### Cancel a local notification ```csharp var notificationService = DependencyService.Get(); notificationService.Cancel(100); ``` -## Receive local notification tap event +### Receive local notification tap event ```csharp public partial class App : Application @@ -54,7 +54,7 @@ public partial class App : Application } private void OnLocalNotificationTapped(LocalNotificationTappedEvent e) - { + { // your code goes here } } @@ -78,7 +78,7 @@ By adding icon.png to Resources\drawable Android Notification Icon -##### Setup +#### Setup To receive Local Notification tap event. Include the following code in the OnNewIntent() method of MainActivity: @@ -96,7 +96,7 @@ public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompa ### iOS -##### Setup +#### Setup You must get permission from the user to allow the app to show local notifications. Also, To receive Local Notification tap event. @@ -129,4 +129,4 @@ Contributions are welcome. Feel free to file issues and pull requests on the re ## Icon -Thank you for the Icon by DinosoftLabs (https://www.iconfinder.com/dinosoftlabs) \ No newline at end of file +Thank you for the Icon by DinosoftLabs (https://www.iconfinder.com/dinosoftlabs)