Instance Method

becomeActive()

Tells a context to become the active context.

Declaration

func becomeActive()

Discussion

You activate contexts to inform ClassKit which tasks are most recently or commonly visited.

Only one context can be active at a time, so if you tell a context to become active when another already is, the framework automatically deactivates the old one.

See Also

Activating and Deactivating a Context

Informing ClassKit That a Task Is About to Begin

Activate and deactivate contexts according to user interaction.

func resignActive()

Tells a context to stop being the active context.

var isActive: Bool

A Boolean indicating whether the context is active.