---
title: "requestAuthorization(completionHandler:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/infocusstatuscenter/requestauthorization(completionhandler:)"
---

# requestAuthorization(completionHandler:)

Asks the system for access to the user’s focus status.

## Declaration

```swift
func requestAuthorization(completionHandler: (@Sendable (INFocusStatusAuthorizationStatus) -> Void)? = nil)
```

```swift
func requestAuthorization() async -> INFocusStatusAuthorizationStatus
```

## Parameters

- `completionHandler`: The handler block to execute when the authorization status for your app is determined. This block has no return value and takes the following parameter:

## Discussion

Discussion Call this method from your app to request authorization to access the user’s focus status. The first time you make this request, the system prompts the user to grant or deny permission.

## See Also

### Requesting Authorization

- [authorizationStatus](intents/infocusstatuscenter/authorizationstatus.md)
