Notification.Builder.SetShowWhen(Boolean) 方法

定义

控制时间戳是否显示在内容视图中。

[Android.Runtime.Register("setShowWhen", "(Z)Landroid/app/Notification$Builder;", "GetSetShowWhen_ZHandler")]
public virtual Android.App.Notification.Builder SetShowWhen(bool show);
[<Android.Runtime.Register("setShowWhen", "(Z)Landroid/app/Notification$Builder;", "GetSetShowWhen_ZHandler")>]
abstract member SetShowWhen : bool -> Android.App.Notification.Builder
override this.SetShowWhen : bool -> Android.App.Notification.Builder

参数

show
Boolean

如果设置为 true该时间戳,则时间戳将显示在内容视图中。

返回

属性

注解

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

适用于