Xamarin.Essentials & Maui

mark robinson 1 Reputation point
2022-12-09T12:25:03.057+00:00

Hi,

I have existing xamarin code using Xamarin.Essentials for GeolocationRequest, SecureStorage etc..

What's the advice on doing this in maui? Still use Xamarin.Essentials nuget? Or is there an alternative mechanism in maui to do these android/ios operations?

Thanks
Mark

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rob Caplan 6,127 Reputation points Microsoft Employee Moderator
    2022-12-09T17:38:24.157+00:00

    The Xamarin.Essentials classes are included in MAUI proper rather than being pulled out into a separate library.

    Microsoft.Maui.Devices.Sensors.GeoLocationRequest
    Microsoft.Maui.Storage.SecureStorage

    You can use the .Net API Browser to see what classes are available. If you know a class name (or can get close) you can search to find its namespace.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.