ZenPolicy.Builder.DisallowAllSounds 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.
Intercepts all notifications and prevents them from playing sounds when DND is active.
[Android.Runtime.Register("disallowAllSounds", "()Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)]
public Android.Service.Notification.ZenPolicy.Builder DisallowAllSounds();
[<Android.Runtime.Register("disallowAllSounds", "()Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)>]
member this.DisallowAllSounds : unit -> Android.Service.Notification.ZenPolicy.Builder
Returns
This builder.
- Attributes
Remarks
Intercepts all notifications and prevents them from playing sounds when DND is active. Also mutes alarm, system and media streams. Notification channels can still play sounds only if they can bypass DND. If no channels can bypass DND, the ringer stream is also muted.
Android reference for android.service.notification.ZenPolicy.Builder.disallowAllSounds.
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.