---
title: "requestPlaybackRestrictionsAuthorization(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritem/requestplaybackrestrictionsauthorization(_:)"
---

# requestPlaybackRestrictionsAuthorization(_:)

Determines whether this item is subject to parental restrictions, and, if so, prompts the user to enter the restrictions passcode.

## Declaration

```swift
func requestPlaybackRestrictionsAuthorization(_ completion: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
func requestPlaybackRestrictionsAuthorization() async throws -> Bool
```

## Parameters

- `completion`: A callback the system invokes after it makes a determination of parental restrictions.

## See Also

### Requesting playback authorization in tvOS

- [cancelPlaybackRestrictionsAuthorizationRequest()](avfoundation/avplayeritem/cancelplaybackrestrictionsauthorizationrequest().md)
