<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetVariantQualifier/predicate(forChannelCount:mediaSelectionOption:operatorType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetVariantQualifier(cm)predicateForChannelCount:mediaSelectionOption:operatorType:"
  },
  "title" : "predicate(forChannelCount:mediaSelectionOption:operatorType:)"
}
-->

# predicate(forChannelCount:mediaSelectionOption:operatorType:)

Creates a predicate with a channel count, media selection option, and operator type.

```
class func predicate(forChannelCount channelCount: Int, mediaSelectionOption: AVMediaSelectionOption?, operatorType: NSComparisonPredicate.Operator) -> NSPredicate
```

## Parameters

`channelCount`

The number of channels in the variant.

`mediaSelectionOption`

The media selection option for the variant.

`operatorType`

The predicate operator.

## Return Value

A predicate object that you use to to create an [`AVAssetVariantQualifier`](/documentation/AVFoundation/AVAssetVariantQualifier).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)