Instance Property

showsSharingServiceButton

A Boolean value that determines whether the player view displays a sharing service button.

Declaration

var showsSharingServiceButton: Bool { get set }

Discussion

This property is currently supported only with a controlsStyle of AVPlayerViewControlsStyle.floating or AVPlayerViewControlsStyle.inline.

The default value is false.

See Also

Customizing the User Interface

var controlsStyle: AVPlayerViewControlsStyle

The player view’s controls style.

enum AVPlayerViewControlsStyle

Constants that specify which controls the player view displays.

var showsFrameSteppingButtons: Bool

A Boolean value that determines whether the player view displays frame stepping buttons.

var showsFullScreenToggleButton: Bool

A Boolean value that determines whether the player view displays a full-screen toggle button.

var showsTimecodes: Bool

A Boolean value that determines whether the player view displays timecodes, if available.

var contentOverlayView: NSView?

A view that adds additional custom views between the video content and the controls.

var actionPopUpButtonMenu: NSMenu?

An action pop-up button menu displayed by the player view.

var updatesNowPlayingInfoCenter: Bool

A Boolean value that indicates whether the player view controller updates the Now Playing info center.