UPWorkout Class Reference
| Inherits from | UPMove : UPBaseEvent : NSObject |
| Declared in | UPWorkoutAPI.h UPWorkoutAPI.m |
Tasks
Other Methods
-
+ workoutWithType:startTime:endTime:intensity:caloriesBurned: -
typeproperty -
intensityproperty -
timeCompletedproperty -
imageURLproperty -
routeImageURLproperty -
imageproperty
Other Methods
Properties
image
The workout’s image.
@property (nonatomic, strong) UPImage *imageDiscussion
The workout’s image.
Declared In
UPWorkoutAPI.himageURL
The URL for the workout’s image.
@property (nonatomic, strong) NSString *imageURLDiscussion
The URL for the workout’s image.
Declared In
UPWorkoutAPI.hintensity
The workout intensity.
@property (nonatomic, assign) UPWorkoutIntensity intensityDiscussion
The workout intensity.
Declared In
UPWorkoutAPI.hrouteImageURL
The URL for the workout’s route image.
@property (nonatomic, strong) NSString *routeImageURLDiscussion
The URL for the workout’s route image.
Declared In
UPWorkoutAPI.hClass Methods
workoutWithType:startTime:endTime:intensity:caloriesBurned:
Create a new workout event.
+ (UPWorkout *)workoutWithType:(UPWorkoutType)type startTime:(NSDate *)startTime endTime:(NSDate *)endTime intensity:(UPWorkoutIntensity)intensity caloriesBurned:(NSNumber *)caloriesBurnedParameters
- type
The type of workout that is being created.
- startTime
The time when the workout was started. The time must be in the past.
- endTime
The time the workout had finished. The time must be in the past.
- intensity
The intensity of the workout.
- caloriesBurned
The number of calories burned during the workout.
Return Value
Returns a new workout event.
Discussion
Create a new workout event.
Declared In
UPWorkoutAPI.h