AutomaticZenRule.Builder.SetDeviceEffects(ZenDeviceEffects) Method
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.
Sets the ZenDeviceEffects associated to this rule.
[Android.Runtime.Register("setDeviceEffects", "(Landroid/service/notification/ZenDeviceEffects;)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)]
public Android.App.AutomaticZenRule.Builder SetDeviceEffects(Android.Service.Notification.ZenDeviceEffects? deviceEffects);
[<Android.Runtime.Register("setDeviceEffects", "(Landroid/service/notification/ZenDeviceEffects;)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)>]
member this.SetDeviceEffects : Android.Service.Notification.ZenDeviceEffects -> Android.App.AutomaticZenRule.Builder
Parameters
- deviceEffects
- ZenDeviceEffects
ZenDeviceEffects: This value may be null.
Returns
This Android.App.AutomaticZenRule.Builder instance, allowing calls to be chained.
- Attributes
Remarks
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.
Android reference for android.app.AutomaticZenRule.Builder.setDeviceEffects.
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.