<!--
{
  "availability" : [
    "iOS: 4.0.0 - 16.0.0",
    "iPadOS: 4.0.0 - 16.0.0",
    "macCatalyst: 13.1.0 - 16.0.0",
    "macOS: 10.7.0 - 13.0.0",
    "tvOS: 9.0.0 - 16.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 1.0.0 - 9.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAsynchronousKeyValueLoading/statusOfValue(forKey:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAsynchronousKeyValueLoading(im)statusOfValueForKey:error:"
  },
  "title" : "statusOfValue(forKey:error:)"
}
-->

# statusOfValue(forKey:error:)

Returns a status that indicates whether a property value is immediately available without blocking the calling thread.

```
func statusOfValue(forKey key: String, error outError: NSErrorPointer) -> AVKeyValueStatus
```

## Parameters

`key`

The property whose status you want.

`outError`

If the status of the value for the `key` is [`AVKeyValueStatus.failed`](/documentation/AVFoundation/AVKeyValueStatus/failed), the system sets this pointer to an <doc://com.apple.documentation/documentation/Foundation/NSError> object that describes the failure.

## Return Value

The current status of the requested key.

## Discussion

---

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)