Contents

isDeviceMotionAvailable

A Boolean value that indicates whether the device-motion service is available on the device.

Declaration

var isDeviceMotionAvailable: Bool { get }

Mentioned in

Discussion

The device-motion service is available if a device has both an accelerometer and a gyroscope. Because all devices have accelerometers, this property is functionally equivalent to isGyroAvailable.

See Also

Related Documentation

Determining the Availability of Services