Global Variable グローバル変数

NSExtensionHostDidEnterBackgroundNotification

Posted when the extension’s host app begins running in the background. 拡張のホストアプリが実行を背面で始める時にポストされます。

Declaration 宣言

NSString *const NSExtensionHostDidEnterBackgroundNotification;

Discussion 議論

Extensions can use this notification to stop tasks and prepare the extension to be suspended. The object parameter contains the NSExtensionContext object. This notification does not contain a userInfo dictionary. 拡張は、この通知を使ってタスクを中止することおよび中断されるよう拡張を準備することができます。objectパラメータは、NSExtensionContextオブジェクトを含みます。この通知は、userInfo辞書を含みません。

Extensions receive only a short amount of time to perform any background work. If you need more time to complete critical tasks, use the methods of the NSProcessInfo class to request that time. 拡張は、なんらかのバックグラウンド作業を実行するのに短い時間量だけ受け取ります。あなたがより多くの時間を重大なタスクを完了するために必要とするならば、NSProcessInfoクラスのメソッドを使ってその時間を要請してください。

See Also 参照

Notifications 通知