---
title: "playerViewController(_:didAccept:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:didaccept:)"
---

# playerViewController(_:didAccept:)

Tells the delegate when the user accepts the proposed content.

## Declaration

```swift
optional func playerViewController(_ playerViewController: AVPlayerViewController, didAccept proposal: AVContentProposal)
```

## Parameters

- `playerViewController`: The player view controller.
- `proposal`: The content proposal.

## Mentioned in

Presenting Content Proposals in tvOS

## Discussion

Discussion Implement this method to replace the player’s current player item with a player item for the proposed content.

## See Also

### Responding to Content Proposals

- [playerViewController(_:shouldPresent:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:shouldpresent:).md)
- [playerViewController(_:didReject:)](avkit/avplayerviewcontrollerdelegate/playerviewcontroller(_:didreject:).md)
