ActivityTypeName
public enum ActivityTypeName: String, Codable
The possible Activity Types for a Locomotion Sample. Use an ActivityTypeClassifier
to determine the type of a
LocomotionSample
.
-
The device’s locomotion properties best match a stationary state.
This may indicate that the device is lying on a stationary surface such as a table, or that the device is in the user’s hand or pocket, but the user is otherwise stationary.
Declaration
Swift
case stationary
-
The device’s locomotion properties best match vehicle travel.
Note
A vehicle temporarily stationary at traffic lights or a train station may instead be classified asstationary
.Declaration
Swift
case transport
-
The device’s locomotion properties best match walking.
Declaration
Swift
case walking
-
The device’s locomotion properties best match running.
Declaration
Swift
case running
-
The device’s locomotion properties best match cycling.
Declaration
Swift
case cycling
-
The device’s locomotion properties best match travelling by a car.
Declaration
Swift
case car
-
The device’s locomotion properties best match travelling by a train.
Declaration
Swift
case train
-
The device’s locomotion properties best match travelling by a bus.
Declaration
Swift
case bus
-
The device’s locomotion properties best match travelling by motorcyle.
Declaration
Swift
case motorcycle
-
The device’s locomotion properties best match travelling by airplane.
Declaration
Swift
case airplane
-
The device’s locomotion properties best match travelling by a boat.
Declaration
Swift
case boat
-
A convenience array containing the base activity types.
Declaration
Swift
public static let baseTypes = [stationary, transport, walking, running, cycling]
-
A convenience array containing all activity types.
Declaration
Swift
public static let allTypes = baseTypes + transportTypes