SensorType
@frozen
public enum SensorType : UInt8, Codable
Identifies a sensor in a wearable device.
-
An accelerometer sensor.
Declaration
Swift
case accelerometer = 0 -
A gyroscope sensor.
Declaration
Swift
case gyroscope = 1 -
A rotation sensor.
Declaration
Swift
case rotation = 2 -
A game rotation sensor.
Declaration
Swift
case gameRotation = 3 -
An orientation sensor.
Declaration
Swift
case orientation = 4 -
A magnetometer sensor.
Declaration
Swift
case magnetometer = 5 -
An uncalibrated magnetometer sensor.
Declaration
Swift
case uncalibratedMagnetometer = 6 -
The set of sensors supported by the SDK. See
WearableDeviceInformation.availableSensorsandSensorInformation.availableSensorsfor the set of sensors supported by a given wearable device.Declaration
Swift
public static var all: [SensorType]
-
Declaration
Swift
public var description: String { get }
SensorType Enumeration Reference