Type Method

isFloorCountingAvailable()

Returns a Boolean value indicating whether floor counting is available on the current device.

Declaration

class func isFloorCountingAvailable() -> Bool

Return Value

true if floor counting is available or false if it is not.

Discussion

Floor counting indicates the ability to count the number of floors the user walks up or down using stairs. This capability is not supported on all devices.

See Also

Determining Pedometer Availability

class func isStepCountingAvailable() -> Bool

Returns a Boolean value indicating whether step counting is available on the current device.

class func isDistanceAvailable() -> Bool

Returns a Boolean value indicating whether distance estimation is available on the current device.

class func isPaceAvailable() -> Bool

Returns a Boolean value indicating whether pace information is available on the current device.

class func isCadenceAvailable() -> Bool

Returns a Boolean value indicating whether cadence information is available on the current device.

class func isPedometerEventTrackingAvailable() -> Bool

Returns a Boolean value indicating whether pedometer events are available on the current device.

class func authorizationStatus() -> CMAuthorizationStatus

Returns a value indicating whether the app is authorized to gather pedometer data.

enum CMAuthorizationStatus

The authorization status for motion-related features.