Språk

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

The interruption-filter code configured for use while this rule is active.

Attributes

Remarks

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

On Android 10 and later, a priority filter uses the rule's ZenPolicy or a default policy. On Android 11 and later, alarm-only and none filters use fixed policies matching the filter. An all filter does not block notifications; on Android 15 and later, the rule can still apply device effects when that API is available. This property uses an integer; cast the corresponding InterruptionFilter value when assigning it.

Android reference for android.app.AutomaticZenRule.getInterruptionFilter.

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