<!--
{
  "availability" : [
    "iOS: 11.3.0 -",
    "iPadOS: 11.3.0 -",
    "macCatalyst: 11.3.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSContextType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:@E@CLSContextType"
  },
  "title" : "CLSContextType"
}
-->

# CLSContextType

The kinds of assignable content a context can contain.

```
enum CLSContextType
```

## Overview

When you initialize a new context with [`init(type:identifier:title:)`](/documentation/ClassKit/CLSContext/init(type:identifier:title:)), you specify its [`type`](/documentation/ClassKit/CLSContext/type) to provide an indication of how your content is structured. The type doesn’t affect the context’s behavior, but it does provide an important indicator to teachers trying to understand your app’s content.

## Topics

### Context Types

[`CLSContextTypeApp`](/documentation/ClassKit/CLSContextType/app)

An app context.

[`CLSContextTypeAudio`](/documentation/ClassKit/CLSContextType/audio)

An audio context.

[`CLSContextTypeBook`](/documentation/ClassKit/CLSContextType/book)

A book context.

[`CLSContextTypeChallenge`](/documentation/ClassKit/CLSContextType/challenge)

A challenge context.

[`CLSContextTypeChapter`](/documentation/ClassKit/CLSContextType/chapter)

A chapter context.

[`CLSContextTypeCourse`](/documentation/ClassKit/CLSContextType/course)

A context that represents an entire course.

[`CLSContextTypeCustom`](/documentation/ClassKit/CLSContextType/custom)

A context for assignable content that isn’t represented by one of the built-in context types.

[`CLSContextTypeDocument`](/documentation/ClassKit/CLSContextType/document)

A document context.

[`CLSContextTypeExercise`](/documentation/ClassKit/CLSContextType/exercise)

An exercise context.

[`CLSContextTypeGame`](/documentation/ClassKit/CLSContextType/game)

A game context.

[`CLSContextTypeLesson`](/documentation/ClassKit/CLSContextType/lesson)

A lesson context.

[`CLSContextTypeLevel`](/documentation/ClassKit/CLSContextType/level)

A level context.

[`CLSContextTypeNone`](/documentation/ClassKit/CLSContextType/none)

No type is assigned.

[`CLSContextTypePage`](/documentation/ClassKit/CLSContextType/page)

A page context.

[`CLSContextTypeQuiz`](/documentation/ClassKit/CLSContextType/quiz)

A quiz context.

[`CLSContextTypeSection`](/documentation/ClassKit/CLSContextType/section)

A section context.

[`CLSContextTypeTask`](/documentation/ClassKit/CLSContextType/task)

A task context.

[`CLSContextTypeVideo`](/documentation/ClassKit/CLSContextType/video)

A video context.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)