다음을 통해 공유


AutomaticZenRule.DeviceEffects Property

Definition

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

Attributes

Remarks

Property getter documentation:

Gets the ZenDeviceEffects of this rule.

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

Property setter documentation:

Sets the ZenDeviceEffects associated to this rule. Device effects specify changes to the device behavior that should apply while the rule is active, but are not directly related to suppressing notifications (for example: disabling always-on display).

When updating an existing rule via NotificationManager#updateAutomaticZenRule, a null value here means the previous set of effects is retained.

Java documentation for android.app.AutomaticZenRule.setDeviceEffects(android.service.notification.ZenDeviceEffects).

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