コード例 #1
0
 protected async override void OnAppearing()
 {
     base.OnAppearing();
     _geoposition = GeoPosition.Instance;
     if (await _geoposition.PermitsGranted())
     {
         if (_geoposition.StartGPS())
         {
             _geoposition.PositionChange += Geoposition_PositionChange;
         }
     }
 }