Type Method

canInitWithRequest:

Determines whether the protocol subclass can handle the specified request.

Declaration

+ (BOOL)canInitWithRequest:(NSURLRequest *)request;

Parameters

request

The request to be handled.

Return Value

YES if the protocol subclass can handle request, otherwise NO.

Discussion

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

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

See Also

Determining If a Subclass Can Handle a Request

+ canInitWithTask:

Determines whether the protocol subclass can handle the specified task.