Class

CLSScoreItem

Activity information that signifies a score out of a possible maximum.

Declaration

class CLSScoreItem : CLSActivityItem

Overview

Use an activity item of this type to indicate the relative success in completing a task, like the number of correctly answered questions on a quiz.

Topics

Creating Score Activity Items

init(identifier: String, title: String, score: Double, maxScore: Double)

Initializes an activity item that holds a score value.

Managing the Score

var score: Double

The score earned by a user in completing the task.

var maxScore: Double

The maximum possible score that the user can earn on a given task.

Relationships

Inherits From

Conforms To

See Also

Activity Items

Recording Additional Metrics About a Completed Task

Add an activity item to an activity to record additional information about a student’s attempt to complete a task.

class CLSBinaryItem

Activity information that is true or false, pass or fail, yes or no.

class CLSQuantityItem

Activity information that signifies a quantity.

class CLSActivityItem

An abstract base class for gathering information about an activity.