Contents

suggestedCompletionTime

A suggested time range to complete a task, measured in minutes.

Declaration

var suggestedCompletionTime: NSRange { get set }

Discussion

Use this property to optionally indicate the time you expect students to need to complete the task associated with a context. The lower bound on the range indicates that you expect the task to take a least that many minutes. The upper bound indicates that you expect the task to take no more than that many minutes. For example, you can indicate that a quiz should take anywhere from 10 to 15 minutes to complete:

quizContext.suggestedCompletionTime = NSRange(10...15) // A short quiz.

To indicate no minimum time, provide a value of 0. To indicate no maximum time, provide the largest possible value.

shortQuiz.suggestedAge = NSRange(0...10) // Up to 10 minutes.
chapterTest.suggestedAge = NSRange(20...Int.max - 1) // At least 20 minutes.
takeHomeExam.suggestedAge = NSRange(0...Int.max - 1) // No suggestion provided.

By default, new contexts use the extreme values to avoid indicating a suggested time range.

See Also

Characterizing the context