From 73507fe18d26861e6d865d394f6caf0397715833 Mon Sep 17 00:00:00 2001 From: Kaustav Chaudhuri Date: Wed, 31 May 2023 12:01:33 +0530 Subject: [PATCH] Location Consent class added --- .../Platforms/Android/LocationConsent.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 GMCabsDriverAssistantSolution/Platforms/Android/LocationConsent.cs diff --git a/GMCabsDriverAssistantSolution/Platforms/Android/LocationConsent.cs b/GMCabsDriverAssistantSolution/Platforms/Android/LocationConsent.cs new file mode 100644 index 0000000..1944c86 --- /dev/null +++ b/GMCabsDriverAssistantSolution/Platforms/Android/LocationConsent.cs @@ -0,0 +1,19 @@ +using GMCabsDriverAssistant; +using GMCabsDriverAssistantSolution.Platforms.Android; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +[assembly: Dependency(typeof(LocationConsent))] +namespace GMCabsDriverAssistantSolution.Platforms.Android +{ + class LocationConsent :ILocationConsent + { + public async Task GetLocationConsent() + { + await Permissions.RequestAsync(); + } + } +}