Platform.TryGetCurrentLocationAsync

This commit is contained in:
Paul Schneider 2026-09-02 14:41:05 +01:00
commit 3b9d296a52
11 changed files with 395 additions and 46 deletions

View file

@ -14,11 +14,12 @@ internal static class PlatformBootstrap
{
internal static void InitPlatform()
{
Platform.CreateBrowser = () =>
{
var activity = MainActivity.Current;
return activity is null ? null : new AndroidSystemBrowser(activity);
};
Platform.TryGetCurrentLocationAsync = AndroidCurrentLocationProvider.TryGetCurrentLocationAsync;
}
}