/// <summary> /// The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis. /// The accelerometer.watchAcceleration gets the device's current acceleration at a regular interval. Each time the Acceleration is retrieved, the accelerometerSuccess callback function is executed. /// Specify the interval in milliseconds via the frequency parameter in the acceleratorOptions object. /// The returned watch ID references references the accelerometer watch interval. The watch ID can be used with accelerometer.clearWatch to stop watching the accelerometer. /// </summary> /// <param name="onSuccess"></param> /// <param name="onError"></param> /// <param name="?"></param> public void watchAcceleration(Action <Acceleration> onSuccess, Action onError, AccelerometerOptions options = null) { }
/// <summary> /// The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current position. The accelerometer can detect 3D movement along the x, y, and z axis. /// The accelerometer.watchAcceleration gets the device's current acceleration at a regular interval. Each time the Acceleration is retrieved, the accelerometerSuccess callback function is executed. /// Specify the interval in milliseconds via the frequency parameter in the acceleratorOptions object. /// The returned watch ID references references the accelerometer watch interval. The watch ID can be used with accelerometer.clearWatch to stop watching the accelerometer. /// </summary> /// <param name="onSuccess"></param> /// <param name="onError"></param> /// <param name="?"></param> public void watchAcceleration(Action<Acceleration> onSuccess, Action onError,AccelerometerOptions options=null) { }