CoreMotionActivityTypeName
public enum CoreMotionActivityTypeName: String, Codable
A convenience enum to provide type safe storage of CMMotionActivity activity type names.
-
Equivalent to the
unknown
property on aCMMotionActivity
.Declaration
Swift
case unknown
-
Equivalent to the
stationary
property on aCMMotionActivity
.Declaration
Swift
case stationary
-
Equivalent to the
automotive
property on aCMMotionActivity
.Declaration
Swift
case automotive
-
Equivalent to the
walking
property on aCMMotionActivity
.Declaration
Swift
case walking
-
Equivalent to the
running
property on aCMMotionActivity
.Declaration
Swift
case running
-
Equivalent to the
cycling
property on aCMMotionActivity
.Declaration
Swift
case cycling
-
A convenience array containing all type names.
Declaration
Swift
public static let allTypes = [stationary, automotive, walking, running, cycling, unknown]