Instance Property

deviceMotionActive

A Boolean value that determines whether the app is receiving updates from the device-motion service.

Declaration

@property(readonly, nonatomic, getter=isDeviceMotionActive) BOOL deviceMotionActive;

Discussion

This property indicates whether startDeviceMotionUpdatesToQueue:withHandler: or startDeviceMotionUpdates has been called since the last time stopDeviceMotionUpdates was called.

See Also

Determining Which Services Are Active

accelerometerActive

A Boolean value that indicates whether accelerometer updates are currently happening.

gyroActive

A Boolean value that determines whether gyroscope updates are currently happening.

magnetometerActive

A Boolean value that determines whether magnetometer updates are currently happening.