---
title: CLSContext
framework: classkit
role: symbol
role_heading: Class
path: classkit/clscontext
---

# CLSContext

An area of your app that represents an assignable task, like a quiz or a chapter.

## Declaration

```swift
class CLSContext
```

## Mentioned in

Creating bookmarks and assignments from your app

## Overview

Overview Make it easy for teachers to understand the app content a context represents by configuring it with information like a clear, concise title localized for the regions that your app supports. A context can contain groups of other contexts, like a book that contains chapters or a chapter that contains sections. You can assemble contexts into a hierarchy of up to eight levels that acts as a table of contents for teachers who want to assign your app content. See Advertising your app’s assignable content for more details.

## Topics

### Creating contexts

- [init(type:identifier:title:)](classkit/clscontext/init(type:identifier:title:).md)
- [CLSObject](classkit/clsobject.md)

### Identifying the context

- [identifier](classkit/clscontext/identifier.md)
- [title](classkit/clscontext/title.md)
- [summary](classkit/clscontext/summary.md)
- [thumbnail](classkit/clscontext/thumbnail.md)

### Managing the context type

- [type](classkit/clscontext/type.md)
- [setType(_:)](classkit/clscontext/settype(_:).md)
- [CLSContextType](classkit/clscontexttype.md)
- [customTypeName](classkit/clscontext/customtypename.md)

### Characterizing the context

- [suggestedAge](classkit/clscontext/suggestedage.md)
- [suggestedCompletionTime](classkit/clscontext/suggestedcompletiontime.md)
- [isAssignable](classkit/clscontext/isassignable.md)

### Managing context presentation

- [displayOrder](classkit/clscontext/displayorder.md)
- [topic](classkit/clscontext/topic.md)
- [CLSContextTopic](classkit/clscontexttopic.md)

### Indicating progress reporting capabilities

- [progressReportingCapabilities](classkit/clscontext/progressreportingcapabilities.md)
- [addProgressReportingCapabilities(_:)](classkit/clscontext/addprogressreportingcapabilities(_:).md)
- [resetProgressReportingCapabilities()](classkit/clscontext/resetprogressreportingcapabilities().md)
- [CLSProgressReportingCapability](classkit/clsprogressreportingcapability.md)

### Activating and deactivating a context

- [Informing ClassKit that a task is about to begin](classkit/informing-classkit-that-a-task-is-about-to-begin.md)
- [becomeActive()](classkit/clscontext/becomeactive().md)
- [resignActive()](classkit/clscontext/resignactive().md)
- [isActive](classkit/clscontext/isactive.md)

### Creating activities

- [currentActivity](classkit/clscontext/currentactivity.md)
- [createNewActivity()](classkit/clscontext/createnewactivity().md)

### Managing context hierarchy

- [identifierPath](classkit/clscontext/identifierpath.md)
- [parent](classkit/clscontext/parent.md)
- [removeFromParent()](classkit/clscontext/removefromparent().md)
- [addChildContext(_:)](classkit/clscontext/addchildcontext(_:).md)
- [descendant(matchingIdentifierPath:completion:)](classkit/clscontext/descendant(matchingidentifierpath:completion:).md)

### Creating a context presentation hierarchy

- [navigationChildContexts](classkit/clscontext/navigationchildcontexts.md)
- [addNavigationChildContext(_:)](classkit/clscontext/addnavigationchildcontext(_:).md)
- [removeNavigationChildContext(_:)](classkit/clscontext/removenavigationchildcontext(_:).md)

### Configuring deep links

- [Linking directly to assignments](classkit/linking-directly-to-assignments.md)
- [universalLinkURL](classkit/clscontext/universallinkurl.md)
- [isClassKitDeepLink](foundation/nsuseractivity/isclasskitdeeplink.md)
- [contextIdentifierPath](foundation/nsuseractivity/contextidentifierpath.md)

## Relationships

### Inherits From

- [CLSObject](classkit/clsobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Contexts

- [Advertising your app’s assignable content](classkit/advertising-your-app-s-assignable-content.md)
- [CLSContextProvider](classkit/clscontextprovider.md)
