Esempio n. 1
0
		protected override void OnAppearing ()
		{
			gps = new Gps ();
			gps.Geolocator.PositionError += OnListeningError;
			gps.Geolocator.PositionChanged += OnPositionChanged;
			base.OnAppearing ();
		}
Esempio n. 2
0
		protected override void OnDisappearing ()
		{
			gps.Geolocator.PositionError -= OnListeningError;
			gps.Geolocator.PositionChanged -= OnPositionChanged;
			gps = null;
			base.OnDisappearing ();
		}
Esempio n. 3
0
		protected override async void OnAppearing(){
			gps = new Gps ();
			gps.Geolocator.PositionError += OnListeningError;
			gps.Geolocator.PositionChanged += OnPositionChanged;
			_linkedGpsPositions = await RestAPI.GetGpsPositionsWithProjects ();

			base.OnAppearing ();
		}