語言

NotificationManager.BubblePreference 屬性

定義

會獲得應用程式的泡泡偏好。

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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於