Class

AVRoutePickerView

A view that displays controls for selecting playback routes.

Declaration

iOS, Mac Catalyst, tvOS
class AVRoutePickerView : UIView
macOS
class AVRoutePickerView : NSView

Topics

Configuring the Delegate

var delegate: AVRoutePickerViewDelegate?

The delegate object for the route picker.

protocol AVRoutePickerViewDelegate

Methods you can implement to respond to route picker view presentation events.

Configuring the Route Picker View

var activeTintColor: UIColor!

The view’s tint color when AirPlay is active.

var isRoutePickerButtonBordered: Bool

A Boolean value that indicates whether the route picker button has a border.

var prioritizesVideoDevices: Bool

A Boolean value that indicates whether the route picker sorts video output devices to the top of the list.

var routePickerButtonStyle: AVRoutePickerViewButtonStyle

The button style for the route picker.

enum AVRoutePickerViewButtonStyle

The modes that determine the button style for a route picker view.

func routePickerButtonColor(for: AVRoutePickerView.ButtonState) -> NSColor

Returns the color of the picker button for the specified state.

func setRoutePickerButtonColor(NSColor?, for: AVRoutePickerView.ButtonState)

Sets the route picker button color for the specified state.

enum AVRoutePickerView.ButtonState

Constant values describing the available button states.

Accessing the Player

var player: AVPlayer?

The player object for which to perform routing operations.