isAccelerometerActive
A Boolean value that indicates whether accelerometer updates are currently happening.
Declaration
var isAccelerometerActive: Bool { get }Discussion
This property indicates whether startAccelerometerUpdates(to:withHandler:) or startAccelerometerUpdates() has been called since the last time stopAccelerometerUpdates() was called. (If the start methods hadn’t been called, the app could be getting updates from the accelerometer after calling, for example, startDeviceMotionUpdates(), but this property would return false.)