Instance Method

loadValuesAsynchronouslyForKeys:completionHandler:

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

Declaration

- (void)loadValuesAsynchronouslyForKeys:(NSArray<NSString *> *)keys completionHandler:(void (^)(void))handler;

Parameters

keys

An array of NSString objects, each of which represents one of the required keys.

handler

The block to be invoked when loading succeeds, fails, or is cancelled.

Discussion

For full discussion, see AVAsynchronousKeyValueLoading.

See Also

Asynchronous Loading

- statusOfValueForKey:error:

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