Instance Method

statusOfValueForKey:error:

Reports whether the value for a given key is immediately available without blocking.

Declaration

- (AVKeyValueStatus)statusOfValueForKey:(NSString *)key error:(NSError * _Nullable *)outError;

Parameters

key

The key whose status you want.

outError

If the status of the value for the key is AVKeyValueStatusFailed, upon return contains an NSError object that describes the failure that occurred.

Return Value

The current loading status of the value for key.

Discussion

For full discussion, see AVAsynchronousKeyValueLoading.

See Also

Asynchronous Loading

- loadValuesAsynchronouslyForKeys:completionHandler:

Tells the receiver to load the values of any of the specified keys that are not already loaded.