This is available in version 1.6, which is in pre-release nuget.
Permissions.ShouldShowRationale doesn't exist
In the document Xamarin.Essentials: Permissions https://learn.microsoft.com/en-us/xamarin/essentials/permissions?context=xamarin%2Fandroid&tabs=android
The following line is included in a code snippet
if (Permissions.ShouldShowRationale<Permissions.LocationWhenInUse>())
ShouldShowRationale does not exist in the essentials package. Is there some other way to get it or is this aspirational code rather than real code?
-
James Montemagno 351 Reputation points Microsoft Employee
2020-11-24T16:34:03.917+00:00
2 additional answers
Sort by: Most helpful
-
Don Glover 511 Reputation points
2020-11-24T16:30:56.997+00:00 @James Montemagno Thoughts on this?
-
Don Glover 511 Reputation points
2020-11-24T16:49:46.883+00:00 @James Montemagno Thanks. The minimum version should be noted in the document. Also, it compiles now and runs now, BUT I am trying to prompt for camera permissions and the following does not issue a prompt.
status = await Permissions.RequestAsync<Permissions.Camera>();