NotificationManager.AreBubblesAllowed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷此應用程式發布的所有通知是否都能出現在通知欄外,浮動於其他應用程式內容之上。
[Android.Runtime.Register("areBubblesAllowed", "()Z", "GetAreBubblesAllowedHandler", ApiSince=29)]
public virtual bool AreBubblesAllowed();
[<Android.Runtime.Register("areBubblesAllowed", "()Z", "GetAreBubblesAllowedHandler", ApiSince=29)>]
abstract member AreBubblesAllowed : unit -> bool
override this.AreBubblesAllowed : unit -> bool
傳回
- 屬性
備註
此方法在 API 等級 31 中被棄用。 改用 getBubblePreference() 代替。
判斷此應用程式發布的所有通知是否都能出現在通知欄外,浮動於其他應用程式內容之上。 對於不允許氣泡的頻道(NotificationChannel.canBubble())發布通知,這個值將被忽略。
另請參閱:
Android 參考資料。android.app.NotificationManager.areBubblesAllowed
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。