共用方式為


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 屬性授權中所述的詞彙使用。

適用於