---
title: "hasMediaCharacteristic(_:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassettrack/hasmediacharacteristic(_:)"
---

# hasMediaCharacteristic(_:)

Returns a Boolean value that indicates whether the track references media with the specified media characteristic.

## Declaration

```swift
func hasMediaCharacteristic(_ mediaCharacteristic: AVMediaCharacteristic) -> Bool
```

## Parameters

- `mediaCharacteristic`: The media characteristic of interest.

## Return Value

Return Value true if the track references media with the specified characteristic, otherwise false.
