Example #1
0
 public void AttachedService(IMvxService service)
 {
     var s = service as CompassService;
     _orientationManager = s.OrientationManager;
     _compassView.OrientationManager = s.OrientationManager;
     _landmarks = s.Landmarks;
 }
Example #2
0
 public void OnAccuracyChanged(OrientationManager orientationManager)
 {
     _callback.OnAccuracyChanged(orientationManager);
 }
Example #3
0
 public void OnLocationChanged(OrientationManager orientationManager)
 {
     _callback.OnLocationChanged(orientationManager);
 }
Example #4
0
 public OnChangedListener(OrientationManager.IOnChangedListener callback)
 {
     _callback = callback;
 }
Example #5
0
        public OrientationManager(SensorManager sensorManager, LocationManager locationManager)
        {
            _instance = this;

            _sensorManager = sensorManager;
            _locationManager = locationManager;

            _rotationMatrix = new float[16];
            _orientation = new float[9];
        }
Example #6
0
 public void OnLocationChanged(OrientationManager orientationManager)
 {
     var location = _orientationManager.Location;
     var places = _landmarks.getNearbyLandmarks(location.Latitude, location.Longitude);
     _compassView.NearbyPlaces = places;
 }
Example #7
0
 public void OnOrientationChanged(OrientationManager orientationManager)
 {
     _compassView.Heading = _orientationManager.Heading;
     var oldTooSteep = _tooSteep;
     _tooSteep = Math.Abs(_orientationManager.Pitch) > TOO_STEEP_PITCH_DEGREES;
     if (_tooSteep != oldTooSteep)
     {
         updateTipsView();
     }
 }
Example #8
0
 public void OnAccuracyChanged(OrientationManager orientationManager)
 {
     _interference = _orientationManager.HasInterference;
     updateTipsView();
 }