UPDATE 2
I understand that SelfCheckPermission may help or the real answer but the problem is I can't find the right keyword.
If it is for camera, I will just need this code
if(CheckSelfPermission(Manifest.Permission.Camera)
== Permission.Granted)
If it is other stuff like read contacts, I can use this code.
if(CheckSelfPermission(Manifest.Permission.ReadContacts)
== Permission.Granted)
But I can't ask the Location if enabled in Application Settings using AccessCoarseLocation and AccessFineLocation since they are still both true even I disabled the Location on my App's Application Settings. Maybe I just need a right keyword for this and that's where I need your help.
UPDATE 1
Location Service is not what I meant here. Location Service, Coarse and Fine Location Permission can be enable or disable without relation to the Application Permission for Location on Application Settings. What I need is to check application settings from settings -> apps/applition -> your app -> location if location is disabled or not. Example app is this Waze with location disabled
ORIGINAL POST
Everything I searched is to selfcheck the permission for coarse and fine location but it doesn't solve my issue since it is always granted even if the location from settings of app is disabled. I need to detect if the app settings is allowed for location or not.
What I have now is to redirect to app settings to allow needed permission. TIA.