Sets the delegate and dispatch queue to use with the resource loader.
- iOS 6.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
The delegate object to query when handling resource requests. You may specify
nilif you want to clear the delegate object. The resource loader does not store a strong reference to the delegate object.
The dispatch queue on which to execute resource requests. If the
delegateparameter is not
nil, this parameter must also not be
niland must contain a valid dispatch queue. However, if
nil, this parameter may also be
The resource loader maintains a strong reference to the dispatch queue you specify.
You use this method to specify the object to use when handling resource requests and the dispatch queue on which to process those requests. Resource requests are processed synchronously on the dispatch queue you provide.