Notification.Builder.SetLocalOnly(Boolean) 方法

定义

设置此通知是否不应桥接到其他设备。

[Android.Runtime.Register("setLocalOnly", "(Z)Landroid/app/Notification$Builder;", "GetSetLocalOnly_ZHandler")]
public virtual Android.App.Notification.Builder SetLocalOnly (bool localOnly);
[<Android.Runtime.Register("setLocalOnly", "(Z)Landroid/app/Notification$Builder;", "GetSetLocalOnly_ZHandler")>]
abstract member SetLocalOnly : bool -> Android.App.Notification.Builder
override this.SetLocalOnly : bool -> Android.App.Notification.Builder

参数

localOnly
Boolean

如果设置为 true,则通知仅在本地显示(而不是在其他设备上)。

返回

属性

注解

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于