---
title: "requestAccess(completionHandler:)"
framework: Execution Policy
role: symbol
role_heading: Instance Method
platforms: [Mac Catalyst 13.0+, macOS 10.15+]
path: "executionpolicy/epdevelopertool/requestaccess(completionhandler:)"
---

# requestAccess(completionHandler:)

## Declaration

```swift
func requestAccess(completionHandler handler: @escaping @Sendable (Bool) -> Void)
```

```swift
func requestAccess() async -> Bool
```

## 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 requestAccess() async -> Bool For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.
