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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software