語言

BroadcastOptions.DeferralPolicyUntilActive 欄位

定義

警告

This constant will be removed in the future version. Use Android.App.BroadcastDeferralPolicy enum directly instead of this field.

延遲政策表示強烈希望每個接收者應被延遲,直到該接收者的程序處於活躍(非快取)狀態。

[Android.Runtime.Register("DEFERRAL_POLICY_UNTIL_ACTIVE", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.BroadcastDeferralPolicy enum directly instead of this field.", true)]
public const Android.App.BroadcastDeferralPolicy DeferralPolicyUntilActive = 2;
[<Android.Runtime.Register("DEFERRAL_POLICY_UNTIL_ACTIVE", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.BroadcastDeferralPolicy enum directly instead of this field.", true)>]
val mutable DeferralPolicyUntilActive : Android.App.BroadcastDeferralPolicy

欄位值

Value = 2
屬性

備註

延遲政策表示強烈希望每個接收者應被延遲,直到該接收者的程序處於活躍(非快取)狀態。 應用程式的程序狀態是否被視為活躍,與其備用桶無關。 此政策僅適用於廣播的執行時註冊接收器,不適用於有序廣播、警報廣播、互動式廣播或清單廣播。 此政策表示執行時註冊接收器通常不會執行,直到該接收端的程序被其他動作(如工作、警報或服務綁定)使程序進入主動狀態。 因此,接收器可能會無限期延遲。 當此策略設定於無序廣播且有完成回撥時,完成回撥會在所有符合資格的程序完成廣播後執行。 處於非活躍程序狀態的程序不被視為合格,且可能在完成回撥前無法接收廣播。

Android 參考資料。android.app.BroadcastOptions.DEFERRAL_POLICY_UNTIL_ACTIVE

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於