Enumeration

CMAuthorizationStatus

The authorization status for motion-related features.

Declaration

enum CMAuthorizationStatus : Int

Topics

Enumeration Cases

case notDetermined

The status has not yet been determined.

case restricted

Access is denied due to system-wide restrictions.

case denied

Access was denied by the user.

case authorized

Access was granted by the user.

See Also

Checking the Availability of Sensor Recording

class func isAccelerometerRecordingAvailable() -> Bool

Returns a Boolean value indicating whether accelerometer recording is supported on the current device.

class func authorizationStatus() -> CMAuthorizationStatus

Returns a value indicating whether the app is authorized to record sensor data.

class func isAuthorizedForRecording() -> Bool

Returns a Boolean value indicating whether the app is authorized to record sensor data.

Deprecated