---
title: "request(_:didFinishWithResult:)"
framework: systemextensions
role: symbol
role_heading: Instance Method
path: "systemextensions/ossystemextensionrequestdelegate/request(_:didfinishwithresult:)"
---

# request(_:didFinishWithResult:)

Tells the delegate that the manager completed the request.

## Declaration

```swift
func request(_ request: OSSystemExtensionRequest, didFinishWithResult result: OSSystemExtensionRequest.Result)
```

## Parameters

- `request`: The request that completed.
- `result`: Additional information about the completion state.

## Discussion

Discussion If the request completes with the OSSystemExtensionRequest.Result.willCompleteAfterReboot result, then the extension isn’t active until after the next restart. After restarting, the most recently-processed request determines the extension’s state. Consider the following scenarios: Activate extension and restart: the extension is active upon restarting. Activate extension, deactivate extension, and restart: the extension is inactive upon restarting.

## See Also

### Handling Success and Failure

- [OSSystemExtensionRequest.Result](systemextensions/ossystemextensionrequest/result.md)
- [request(_:didFailWithError:)](systemextensions/ossystemextensionrequestdelegate/request(_:didfailwitherror:).md)
