---
title: becomeActive()
framework: classkit
role: symbol
role_heading: Instance Method
path: classkit/clscontext/becomeactive()
---

# becomeActive()

Tells a context to become the active context.

## Declaration

```swift
func becomeActive()
```

## Mentioned in

Informing ClassKit that a task is about to begin

## Discussion

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](classkit/informing-classkit-that-a-task-is-about-to-begin.md)
- [resignActive()](classkit/clscontext/resignactive().md)
- [isActive](classkit/clscontext/isactive.md)
