Ejemplo n.º 1
0
		protected override void OnAppearing ()
		{
			gps = new Gps ();
			gps.Geolocator.PositionError += OnListeningError;
			gps.Geolocator.PositionChanged += OnPositionChanged;
			base.OnAppearing ();
		}
Ejemplo n.º 2
0
		protected override void OnDisappearing ()
		{
			gps.Geolocator.PositionError -= OnListeningError;
			gps.Geolocator.PositionChanged -= OnPositionChanged;
			gps = null;
			base.OnDisappearing ();
		}
Ejemplo 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 ();
		}