---
title: "activate(completionHandler:)"
framework: exposurenotification
role: symbol
role_heading: Instance Method
path: "exposurenotification/enmanager/activate(completionhandler:)"
---

# activate(completionHandler:)

Prepares the manager for use.

## Declaration

```swift
func activate(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func activate() async throws
```

## Parameters

- `completionHandler`: The completion handler that the framework calls when activation completes.

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func activate() async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. important: This method is available in iOS 12.5, and in iOS 13.5 and later. Properties may not be usable until the completion handler reports success.

## See Also

### Activating the Manager

- [activityHandler](exposurenotification/enmanager/activityhandler.md)
- [ENActivityHandler](exposurenotification/enactivityhandler.md)
- [ENActivityFlags](exposurenotification/enactivityflags.md)
- [setExposureNotificationEnabled(_:completionHandler:)](exposurenotification/enmanager/setexposurenotificationenabled(_:completionhandler:).md)
