語言

Notification.BubbleMetadata.Builder.SetSuppressNotification(Boolean) 方法

定義

設定該泡泡是否會在通知欄中顯示,卻沒有相關通知。

[Android.Runtime.Register("setSuppressNotification", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetSuppressNotification(bool shouldSuppressNotif);
[<Android.Runtime.Register("setSuppressNotification", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetSuppressNotification : bool -> Android.App.Notification.BubbleMetadata.Builder

參數

shouldSuppressNotif
Boolean

boolean

傳回

這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。

屬性

備註

設定該泡泡是否會在通知欄中顯示,卻沒有相關通知。 一般而言,此旗標應僅在使用者已執行請求或建立氣泡的動作,或使用者已看到通知內容且通知不再相關時才會設定。

設定此旗標為可選;預設為 false。

Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setSuppressNotification

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於