Instance Property


The kind of content a context represents.


var type: CLSContextType { get }


The context type helps teachers to understand what kind of assignable content you offer. The type doesn’t affect the behavior of the context, but it does appear to teachers as they browse your app’s content. This helps teachers better understand your content and how they might use it as part of their own lesson plans.

Use one of the values from CLSContextType. If you can’t find an exact match for your particular content, you might be able to find a similar one. For example, for an app that allows students to read plays, you might use, CLSContextType.chapter, and CLSContextType.section as the types for the play, its acts, and their scenes, respectively.

Alternatively, you can use the CLSContextType.custom type, and provide a name for the type using the customTypeName property. The system presents this name to the user directly, so you should provide a localized value. If you choose the custom type but don’t provide a name, the system uses a localized default, like “Custom”. If you choose a type besides the custom type, the system ignores the custom type name.

See Also

Configuring a Context

var title: String

The name of the context as it appears to users.

var identifier: String

A string that uniquely identifies a context among its siblings.

enum CLSContextType

The kinds of assignable content a context can contain.

var customTypeName: String?

An optional name that the system presents to the user if you choose the custom context type.