Język

ZenPolicy.Builder.AllowMessages(AudienceType) Method

Definition

Whether to allow notifications with category Notification.CATEGORY_MESSAGE that match audienceType to play sounds and visually appear or to intercept them when DND is active.

[Android.Runtime.Register("allowMessages", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)]
public Android.Service.Notification.ZenPolicy.Builder AllowMessages(Android.Service.Notification.AudienceType audienceType);
[<Android.Runtime.Register("allowMessages", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)>]
member this.AllowMessages : Android.Service.Notification.AudienceType -> Android.Service.Notification.ZenPolicy.Builder

Parameters

audienceType
AudienceType

message senders that are allowed to bypass DND. Value is one of the following: ZenPolicy.PEOPLE_TYPE_UNSET; ZenPolicy.PEOPLE_TYPE_ANYONE; ZenPolicy.PEOPLE_TYPE_CONTACTS; ZenPolicy.PEOPLE_TYPE_STARRED; ZenPolicy.PEOPLE_TYPE_NONE

Returns

Attributes

Remarks

Whether to allow notifications with category Notification.CATEGORY_MESSAGE that match audienceType to play sounds and visually appear or to intercept them when DND is active.

Android reference for android.service.notification.ZenPolicy.Builder.allowMessages.

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