Instance Property

isMagnetometerAvailable

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

Declaration

var isMagnetometerAvailable: 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 isAccelerometerAvailable: Bool

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

var isGyroAvailable: Bool

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