Notification.BubbleMetadata.Builder.SetAutoExpandBubble(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定氣泡是否會以擴展狀態顯示。
[Android.Runtime.Register("setAutoExpandBubble", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetAutoExpandBubble(bool shouldExpand);
[<Android.Runtime.Register("setAutoExpandBubble", "(Z)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetAutoExpandBubble : bool -> Android.App.Notification.BubbleMetadata.Builder
參數
- shouldExpand
- Boolean
boolean
傳回
這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。
- 屬性
備註
設定氣泡是否會以擴展狀態顯示。 如果該氣泡的應用程式不在前景,這個旗幟就不會生效。 如果應用程式在螢幕上可見且顯示,則被視為前景,但前景服務不符合條件。
一般來說,只有當使用者執行請求或建立氣泡的動作時,才應設定此旗標。
設定此旗標為可選;預設為 false。
Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setAutoExpandBubble
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。