AutomaticZenRule.DeviceEffects 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 ZenDeviceEffects of this rule. -or- Sets the ZenDeviceEffects associated to this rule.
public Android.Service.Notification.ZenDeviceEffects? DeviceEffects { [Android.Runtime.Register("getDeviceEffects", "()Landroid/service/notification/ZenDeviceEffects;", "", ApiSince=35)] get; [Android.Runtime.Register("setDeviceEffects", "(Landroid/service/notification/ZenDeviceEffects;)V", "", ApiSince=35)] set; }
[<get: Android.Runtime.Register("getDeviceEffects", "()Landroid/service/notification/ZenDeviceEffects;", "", ApiSince=35)>]
[<set: Android.Runtime.Register("setDeviceEffects", "(Landroid/service/notification/ZenDeviceEffects;)V", "", ApiSince=35)>]
member this.DeviceEffects : Android.Service.Notification.ZenDeviceEffects with get, set
Property Value
This value may be null.
- Attributes
Remarks
Gets or sets the device effects associated with this rule. Device effects change device behavior while the rule is active, such as disabling the always-on display, rather than suppressing notifications.
When updating an existing rule through NotificationManager.updateAutomaticZenRule, a null value retains the previous effects on Android 15 with the modes API enabled and on Android 16 and Android 17.
Android reference for android.app.AutomaticZenRule.getDeviceEffects.
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.