예제 #1
0
        protected override void DoStart(SensorDelay delay)
        {
            if (!IsAvailable())
            {
                throw new Exception("Accelerometer sensor is not available on this device.");
            }

            MotionManager.AccelerometerUpdateInterval = (int)delay * 0.001;
            MotionManager.StartAccelerometerUpdates(NSOperationQueue.CurrentQueue, HandleChanged);
        }