NotificationManager.ActionNotificationPolicyChanged Field

Definition

Intent that is broadcast when the state of getNotificationPolicy() changes.

[Android.Runtime.Register("ACTION_NOTIFICATION_POLICY_CHANGED", ApiSince=23)]
public const string ActionNotificationPolicyChanged;
[<Android.Runtime.Register("ACTION_NOTIFICATION_POLICY_CHANGED", ApiSince=23)>]
val mutable ActionNotificationPolicyChanged : string

Field Value

Attributes

Remarks

Intent that is broadcast when the state of getNotificationPolicy() changes. This broadcast is only sent to registered receivers and (starting from Build.VERSION_CODES.Q) receivers in packages that have been granted Do Not Disturb access (see isNotificationPolicyAccessGranted()). Starting with Build.VERSION_CODES.VANILLA_ICE_CREAM, most calls to setNotificationPolicy(Policy) will update the app's implicit rule policy instead of the global policy, so this broadcast will be sent much less frequently.

Android reference for android.app.NotificationManager.ACTION_NOTIFICATION_POLICY_CHANGED.

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