ZenPolicy.Builder.AllowConversations(Int32) 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.
Whether to allow conversation notifications (see NotificationChannel.setConversationId(String,String)) that match audienceType to play sounds and visually appear or to intercept them when DND is active.
[Android.Runtime.Register("allowConversations", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=30)]
public Android.Service.Notification.ZenPolicy.Builder AllowConversations(int audienceType);
[<Android.Runtime.Register("allowConversations", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=30)>]
member this.AllowConversations : int -> Android.Service.Notification.ZenPolicy.Builder
Parameters
- audienceType
- Int32
conversation senders that are allowed to bypass DND. Value is one of the following: ZenPolicy.CONVERSATION_SENDERS_UNSET; ZenPolicy.CONVERSATION_SENDERS_ANYONE; ZenPolicy.CONVERSATION_SENDERS_IMPORTANT; ZenPolicy.CONVERSATION_SENDERS_NONE
Returns
- Attributes
Remarks
Whether to allow conversation notifications (see NotificationChannel.setConversationId(String,String)) 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.allowConversations.
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.