AutomaticZenRule.ZenPolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the ZenPolicy applied if #getInterruptionFilter() is
NotificationManager#INTERRUPTION_FILTER_PRIORITY. -or- Sets the ZenPolicy applied if #getInterruptionFilter() is
NotificationManager#INTERRUPTION_FILTER_PRIORITY.
public Android.Service.Notification.ZenPolicy? ZenPolicy { [Android.Runtime.Register("getZenPolicy", "()Landroid/service/notification/ZenPolicy;", "", ApiSince=29)] get; [Android.Runtime.Register("setZenPolicy", "(Landroid/service/notification/ZenPolicy;)V", "", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getZenPolicy", "()Landroid/service/notification/ZenPolicy;", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setZenPolicy", "(Landroid/service/notification/ZenPolicy;)V", "", ApiSince=29)>]
member this.ZenPolicy : Android.Service.Notification.ZenPolicy with get, set
Property Value
This value may be null.
- Attributes
Remarks
Gets or sets the ZenPolicy applied when the interruption filter is priority. When updating an existing rule through NotificationManager.updateAutomaticZenRule, a null value retains the previous policy on Android 15 with the modes API enabled and on Android 16 and Android 17.
Android reference for android.app.AutomaticZenRule.getZenPolicy.
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.