Type Method

canInitWithTask:

Determines whether the protocol subclass can handle the specified task.

Declaration

+ (BOOL)canInitWithTask:(NSURLSessionTask *)task;

Parameters

task

A URL session task containing the request to be handled.

Discussion

A subclass should inspect the task’s request and determine whether or not the implementation can perform a load with that task.

This is an abstract method and subclasses must provide an implementation.

See Also

Determining If a Subclass Can Handle a Request

+ canInitWithRequest:

Determines whether the protocol subclass can handle the specified request.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software