'how to call async method in MainPage
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
}
}
I want to call here:
var status = await Permissions.CheckStatusAsync<Permissions.LocationWhenInUse>();
How to do it?
Solution 1:[1]
call it in OnAppearing
public override async void OnAppearing()
{
var status = await Permissions.CheckStatusAsync<Permissions.LocationWhenInUse>();
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jason |
