Type Method


Returns a Boolean indicating whether motion data is available on the current device.


class func isActivityAvailable() -> Bool

Return Value

true if motion data is available or false if it is not.


Motion data is not available on all iOS devices. Use this method to determine if support is available on the current device.

See Also

Determining Activity Availability

class func authorizationStatus() -> CMAuthorizationStatus

Returns a value indicating whether the app is authorized to retrieve stored motion data.

enum CMAuthorizationStatus

The authorization status for motion-related features.

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