---
title: "statusOfValue(forKey:error:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avasynchronouskeyvalueloading/statusofvalue(forkey:error:)"
---

# statusOfValue(forKey:error:)

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

## Declaration

```swift
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 doc://com.apple.avfoundation/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

Return Value The current status of the requested key.

## See Also

### Deprecated

- [Deprecated symbols](avfoundation/avasynchronouskeyvalueloading-deprecated-symbols.md)
- [loadValuesAsynchronously(forKeys:completionHandler:)](avfoundation/avasynchronouskeyvalueloading/loadvaluesasynchronously(forkeys:completionhandler:).md)
- [AVKeyValueStatus](avfoundation/avkeyvaluestatus.md)
