---
title: contextualActions
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avplayerviewcontroller/contextualactions
---

# contextualActions

An array of action controls to present contextually during playback.

## Declaration

```swift
var contextualActions: [UIAction] { get set }
```

## Mentioned in

Adopting the system player interface in visionOS Customizing the tvOS Playback Experience

## Discussion

Discussion Use this property to present action controls for a specific time in the presentation, such as showing a Skip Intro button during a title sequence. Have your app observe the player’s timing, and when playback reaches a point at which to present controls, set the property value to one or more custom actions. To dismiss the controls, set this property value back to an empty array. For details about observing player timing, see Observing the Playback Time. note: The view controller presents contextual actions only when the transport bar isn’t visible.

## See Also

### Customizing the tvOS player UI

- [playbackControlsIncludeTransportBar](avkit/avplayerviewcontroller/playbackcontrolsincludetransportbar.md)
- [playbackControlsIncludeInfoViews](avkit/avplayerviewcontroller/playbackcontrolsincludeinfoviews.md)
- [transportBarIncludesTitleView](avkit/avplayerviewcontroller/transportbarincludestitleview.md)
- [transportBarCustomMenuItems](avkit/avplayerviewcontroller/transportbarcustommenuitems.md)
- [customInfoViewControllers](avkit/avplayerviewcontroller/custominfoviewcontrollers.md)
- [infoViewActions](avkit/avplayerviewcontroller/infoviewactions.md)
- [customOverlayViewController](avkit/avplayerviewcontroller/customoverlayviewcontroller.md)
- [unobscuredContentGuide](avkit/avplayerviewcontroller/unobscuredcontentguide.md)
- [customInfoViewController](avkit/avplayerviewcontroller/custominfoviewcontroller.md)
