void PlatformStart(SensorSpeed sensorSpeed) { var delay = sensorSpeed.ToPlatform(); listener = new MagnetometerListener(RaiseReadingChanged); SensorManager !.RegisterListener(listener, Sensor, delay); }
void PlatformStart(SensorSpeed sensorSpeed) { sensor = DefaultSensor; sensor.Interval = sensorSpeed.ToPlatform(); sensor.DataUpdated += DataUpdated; sensor.Start(); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var manager = Platform.MotionManager; manager.MagnetometerUpdateInterval = sensorSpeed.ToPlatform(); manager.StartMagnetometerUpdates(Platform.GetCurrentQueue(), DataUpdated); }
void PlatformStart(SensorSpeed sensorSpeed) { MotionManager.DeviceMotionUpdateInterval = sensorSpeed.ToPlatform(); // use a fixed reference frame where X points north and Z points vertically into the sky MotionManager.StartDeviceMotionUpdates(CMAttitudeReferenceFrame.XTrueNorthZVertical, NSOperationQueue.CurrentQueue ?? new NSOperationQueue(), DataUpdated); }
void PlatformStart(SensorSpeed sensorSpeed) { var manager = Platform.MotionManager; manager.AccelerometerUpdateInterval = sensorSpeed.ToPlatform(); manager.StartAccelerometerUpdates(Platform.GetCurrentQueue(), DataUpdated); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var delay = sensorSpeed.ToPlatform(); listener = new OrientationSensorListener(); orientationSensor = Platform.SensorManager.GetDefaultSensor(SensorType.RotationVector); Platform.SensorManager.RegisterListener(listener, orientationSensor, delay); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var delay = sensorSpeed.ToPlatform(); listener = new MagnetometerListener(); magnetometer = Platform.SensorManager.GetDefaultSensor(SensorType.MagneticField); Platform.SensorManager.RegisterListener(listener, magnetometer, delay); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var delay = sensorSpeed.ToPlatform(); listener = new GyroscopeListener(); gyroscope = Platform.SensorManager.GetDefaultSensor(SensorType.Gyroscope); Platform.SensorManager.RegisterListener(listener, gyroscope, delay); }
void PlatformStart(SensorSpeed sensorSpeed, bool applyLowPassFilter) { sensor = DefaultSensor; sensor.Interval = sensorSpeed.ToPlatform(); sensor.DataUpdated += DataUpdated; sensor.Start(); }
void PlatformStart(SensorSpeed sensorSpeed) { _listener = new AccelerometerListener(OnChanged); var delay = sensorSpeed.ToPlatform(); SensorManager !.RegisterListener(_listener, Sensor, delay); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var delay = sensorSpeed.ToPlatform(); listener = new AccelerometerListener(); accelerometer = Platform.SensorManager.GetDefaultSensor(SensorType.Accelerometer); Platform.SensorManager.RegisterListener(listener, accelerometer, delay); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { var manager = Platform.MotionManager; manager.DeviceMotionUpdateInterval = sensorSpeed.ToPlatform(); // use a fixed reference frame where X points north and Z points vertically into the sky manager.StartDeviceMotionUpdates(CMAttitudeReferenceFrame.XTrueNorthZVertical, Platform.GetCurrentQueue(), DataUpdated); }
void PlatformStart(SensorSpeed sensorSpeed) { sensor = DefaultSensor; var interval = sensorSpeed.ToPlatform(); sensor.ReportInterval = sensor.MinimumReportInterval >= interval ? sensor.MinimumReportInterval : interval; sensor.ReadingChanged += DataUpdated; }
void PlatformStart(SensorSpeed sensorSpeed) { sensor = DefaultBarometer; var interval = sensorSpeed.ToPlatform(); sensor.ReportInterval = sensor.MinimumReportInterval >= interval ? sensor.MinimumReportInterval : interval; sensor.ReadingChanged += BarometerReportedInterval; }
internal static void PlatformStart(SensorSpeed sensorSpeed, bool applyLowPassFilter) { var delay = sensorSpeed.ToPlatform(); accelerometer = Platform.SensorManager.GetDefaultSensor(SensorType.Accelerometer); magnetometer = Platform.SensorManager.GetDefaultSensor(SensorType.MagneticField); listener = new SensorListener(accelerometer.Name, magnetometer.Name, delay, applyLowPassFilter); Platform.SensorManager.RegisterListener(listener, accelerometer, delay); Platform.SensorManager.RegisterListener(listener, magnetometer, delay); }
internal static void PlatformStart(SensorSpeed sensorSpeed) { DefaultSensor.Interval = sensorSpeed.ToPlatform(); DefaultSensor.DataUpdated += DataUpdated; DefaultSensor.Start(); }
void PlatformStart(SensorSpeed sensorSpeed) { listener = new BarometerListener(RaiseReadingChanged); barometer = DefaultBarometer; Platform.SensorManager.RegisterListener(listener, barometer, sensorSpeed.ToPlatform()); }
internal static void PlatformStart(SensorSpeed sensorSpeed, bool applyLowPassFilter) { DefaultSensor.Interval = sensorSpeed.ToPlatform(); DefaultSensor.DataUpdated += DataUpdated; DefaultSensor.Start(); }
void PlatformStart(SensorSpeed sensorSpeed) { MotionManager.GyroUpdateInterval = sensorSpeed.ToPlatform(); MotionManager.StartGyroUpdates(NSOperationQueue.CurrentQueue ?? new NSOperationQueue(), DataUpdated); }
void PlatformStart(SensorSpeed sensorSpeed) { _listener = new BarometerListener(RaiseReadingChanged); SensorManager !.RegisterListener(_listener, Sensor, sensorSpeed.ToPlatform()); }
static void PlatformStart(SensorSpeed sensorSpeed) { listener = new BarometerListener(); barometer = DefaultBarometer; Platform.SensorManager.RegisterListener(listener, barometer, sensorSpeed.ToPlatform()); }