Platform.TryGetCurrentLocationAsync
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m30s
All checks were successful
Dotnet build and test / build (pull_request) Successful in 8m30s
This commit is contained in:
parent
55d305f295
commit
914e9486b5
11 changed files with 395 additions and 46 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue