Hi
I am searching for small code snippet demo for getting current device location .
I tried follwoing code .
using PerpetualEngine.Location; //add package
Button btn = new Button ()
{
Text="SHow Loc",
Command=new Command(o=>smp.StartLocationUpdates(LocationAccuracy.High,1,TimeSpan.FromSeconds(5),TimeSpan.FromSeconds(1))),
};
Label l1 = new Label () {
Text="text lkjlksajflksad"
};
Content = new StackLayout {
Children = {
btn,l1
}
};
smp.LocationUpdated += () => l1.Text = "New location:\n" + smp.LastLocation;
resolve