NotificationManager.BubblePreference 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得應用程式的泡泡偏好。
public virtual int BubblePreference { [Android.Runtime.Register("getBubblePreference", "()I", "GetGetBubblePreferenceHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getBubblePreference", "()I", "GetGetBubblePreferenceHandler", ApiSince=31)>]
member this.BubblePreference : int
屬性值
使用者對應用程式的泡泡偏好。
- 屬性
備註
會獲得應用程式的泡泡偏好。 這個偏好只適用於已正確設定為氣泡的通知。 如果BUBBLE_PREFERENCE_ALL,只要使用者沒有排除該通知(NotificationChannel.canBubble()),任何氣泡通知都會以氣泡形式出現。 如果BUBBLE_PREFERENCE_SELECTED,只要使用者選擇了,任何氣泡通知都會以氣泡形式出現。 如果BUBBLE_PREFERENCE_NONE,應用程式中可能不會以氣泡顯示任何通知。
另請參閱:
Android 參考資料。android.app.NotificationManager.getBubblePreference
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。