Contents

hasMediaCharacteristic(_:)

Returns a Boolean value that indicates whether the receiver has media with the given media characteristic.

Declaration

func hasMediaCharacteristic(_ mediaCharacteristic: AVMediaCharacteristic) -> Bool

Parameters

  • mediaCharacteristic:

    The media characteristic of interest, for example, Visual, Audible, or Legible.

Return Value

true if the media selection option has media with mediaCharacteristic, otherwise false.

See Also

Accessing media information