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. 取り扱われることになるリクエストを含んでいるURLセッションタスク。

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 サブクラスがリクエストを取り扱えるかどうか決定する