Enumeration

CMAuthorizationStatus

The authorization status for motion-related features.

Declaration

typedef enum CMAuthorizationStatus : NSInteger {
    ...
} CMAuthorizationStatus;

Topics

Enumeration Cases

CMAuthorizationStatusNotDetermined

The status has not yet been determined.

CMAuthorizationStatusRestricted

Access is denied due to system-wide restrictions.

CMAuthorizationStatusDenied

Access was denied by the user.

CMAuthorizationStatusAuthorized

Access was granted by the user.

See Also

Checking the Availability of Sensor Recording

+ isAccelerometerRecordingAvailable

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

+ authorizationStatus

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

+ isAuthorizedForRecording

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

Deprecated