Instance Property

isAccelerometerAvailable

A Boolean value that indicates whether an accelerometer is available on the device.

Declaration

var isAccelerometerAvailable: Bool { get }

See Also

Determining the Availability of Services

var isDeviceMotionAvailable: Bool

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

var isGyroAvailable: Bool

A Boolean value that indicates whether a gyroscope is available on the device.

var isMagnetometerAvailable: Bool

A Boolean value that indicates whether a magnetometer is available on the device.