A Boolean indicating whether the device is on a running person.
SDKs
- iOS 7.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Core Motion
Declaration
var running: Bool { get }
A Boolean indicating whether the device is on a running person.
SDKs
Framework
var running: Bool { get }
var stationary: Bool
A Boolean indicating whether the device is stationary.
var walking: Bool
A Boolean indicating whether the device is on a walking person.
var automotive: Bool
A Boolean indicating whether the device is in an automobile.
var cycling: Bool
A Boolean indicating whether the device is in a bicycle.
var unknown: Bool
A Boolean indicating whether the type of motion is unknown.