Enumeration 列挙

NSURLSessionDelayedRequestDisposition

The action to take on a delayed URL session task. ある遅延URLセッションタスクを取ることになるアクション。

Declaration 宣言

typedef enum NSURLSessionDelayedRequestDisposition : NSInteger {
    ...
} NSURLSessionDelayedRequestDisposition;

Overview 概要

The values of this enumeration indicate how to handle a task with a delayed start time (as set with the earliestBeginDate property). When the task is ready to start, it calls the URLSession:task:willBeginDelayedRequest:completionHandler: method of NSURLSessionTaskDelegate. The implementation of this method must call the provided completion handler, passing in one case of this enumeration as the first argument. If the NSURLSessionDelayedRequestUseNewRequest disposition is used for the first argument, the caller must also provide a new NSURLRequest as the second argument. この列挙の値は、どのようにタスクがある遅延開始時間で取り扱われるかを指し示します(earliestBeginDateプロパティで設定されるように)。タスクが開始する準備ができる場合、それはNSURLSessionTaskDelegateURLSession:task:willBeginDelayedRequest:completionHandler:メソッドを呼び出します。このメソッドの実装は、提供された完了ハンドラを呼び出さなければなりません、この列挙の1事例を最初の引数として渡して。NSURLSessionDelayedRequestUseNewRequestの意向が最初の引数として使われるならば、呼び出し側も新しいNSURLRequestを2番目の引数として提供しなければなりません。

Topics 話題

Dispositions 意向

See Also 参照

Handling Delayed and Waiting Tasks 遅延されたそして待機しているタスクを取り扱う