Taal

BroadcastDeferralPolicy Enum

Definition

Specifies when broadcast delivery may be deferred.

public enum BroadcastDeferralPolicy
type BroadcastDeferralPolicy = 
Inheritance
BroadcastDeferralPolicy

Fields

Name Value Description
Default 0

Deferral policy that indicates no desire has been expressed, and that the system should use a reasonable default behavior.

None 1

Deferral policy that indicates a strong desire that no receiver of this broadcast should be deferred.

UntilActive 2

Requests that each receiver be deferred until its process is active rather than cached. Process activity is independent of the app's standby bucket.

This policy applies only to receivers registered at runtime. It does not apply to ordered, alarm, interactive, or manifest broadcasts. A receiver can be delayed indefinitely until another action, such as a job, alarm, or service binding, makes its process active.

For an unordered broadcast with a completion callback, the callback runs after all eligible processes finish receiving it. Inactive processes are not eligible and might not receive the broadcast before the callback.

Android reference for android.app.BroadcastOptions.DEFERRAL_POLICY_UNTIL_ACTIVE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to