ZenPolicy.Builder.AllowCalls(AudienceType) 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 notifications with category Notification.CATEGORY_CALL that match audienceType to play sounds and visually appear or to intercept them when DND is active.
[Android.Runtime.Register("allowCalls", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)]
public Android.Service.Notification.ZenPolicy.Builder AllowCalls(Android.Service.Notification.AudienceType audienceType);
[<Android.Runtime.Register("allowCalls", "(I)Landroid/service/notification/ZenPolicy$Builder;", "", ApiSince=29)>]
member this.AllowCalls : Android.Service.Notification.AudienceType -> Android.Service.Notification.ZenPolicy.Builder
Parameters
- audienceType
- AudienceType
callers 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_CALL 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.allowCalls.
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.