语言

Notification.Builder.SetAllowSystemGeneratedContextualActions(Boolean) 方法

定义

确定平台是否可以为通知生成上下文操作。

[Android.Runtime.Register("setAllowSystemGeneratedContextualActions", "(Z)Landroid/app/Notification$Builder;", "GetSetAllowSystemGeneratedContextualActions_ZHandler", ApiSince=29)]
public virtual Android.App.Notification.Builder SetAllowSystemGeneratedContextualActions(bool allowed);
[<Android.Runtime.Register("setAllowSystemGeneratedContextualActions", "(Z)Landroid/app/Notification$Builder;", "GetSetAllowSystemGeneratedContextualActions_ZHandler", ApiSince=29)>]
abstract member SetAllowSystemGeneratedContextualActions : bool -> Android.App.Notification.Builder
override this.SetAllowSystemGeneratedContextualActions : bool -> Android.App.Notification.Builder

参数

allowed
Boolean

boolean

返回

此 Android.App.Notification.Builder 实例允许链接调用。

特性

注解

确定平台是否可以为通知生成上下文操作。 默认情况下,这为 true。

Android 参考。android.app.Notification.Builder.setAllowSystemGeneratedContextualActions

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于