<!--
{
  "availability" : [
    "tvOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItem/requestPlaybackRestrictionsAuthorization(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItem(im)requestPlaybackRestrictionsAuthorization:"
  },
  "title" : "requestPlaybackRestrictionsAuthorization(_:)"
}
-->

# requestPlaybackRestrictionsAuthorization(_:)

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

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

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

## Parameters

`completion`

A callback the system invokes after it makes a determination of parental restrictions.

- `isAuthorized`: A Boolean value that indicates whether the system authorizes the app to play an item.
- `error`: An optional error that contains error details if the system encountered an error.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)