Share via


AutomaticZenRule.InterruptionFilter Property

Definition

Returns the interruption filter that is applied when this rule is active. -or- Sets the interruption filter that is applied when this rule is active.

public int InterruptionFilter { [Android.Runtime.Register("getInterruptionFilter", "()I", "", ApiSince=24)] get; [Android.Runtime.Register("setInterruptionFilter", "(I)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getInterruptionFilter", "()I", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setInterruptionFilter", "(I)V", "", ApiSince=24)>]
member this.InterruptionFilter : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the interruption filter that is applied when this rule is active.

Java documentation for android.app.AutomaticZenRule.getInterruptionFilter().

Property setter documentation:

Sets the interruption filter that is applied when this rule is active.

<ul> <li>When NotificationManager#INTERRUPTION_FILTER_PRIORITY, the rule will use the ZenPolicy supplied to #setZenPolicy (or a default one). <li>When NotificationManager#INTERRUPTION_FILTER_ALARMS or NotificationManager#INTERRUPTION_FILTER_NONE, the rule will use a fixed ZenPolicy matching the filter. <li>When NotificationManager#INTERRUPTION_FILTER_ALL, the rule will not block notifications, but can still have ZenDeviceEffects. </ul>

Java documentation for android.app.AutomaticZenRule.setInterruptionFilter(int).

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