語言

NotificationChannel.Importance 屬性

定義

回傳使用者指定的重要性,例如 -或- 設定此通知通道的中斷程度。

public Android.App.NotificationImportance Importance { [Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)>]
member this.Importance : Android.App.NotificationImportance with get, set

屬性值

價值屬於以下之一:NotificationManager.IMPORTANCE_UNSPECIFIED NotificationManager.IMPORTANCE_NONE NotificationManager.IMPORTANCE_MIN NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_HIGH

屬性

備註

回傳使用者指定的重要性,例如NotificationManager.IMPORTANCE_LOW本頻道發布的通知。 注意:此值可能NotificationManager.IMPORTANCE_NONE > ,但若母通知頻道群組或應用程式被封鎖,該頻道發布的通知將不會顯示給使用者。 請參見 NotificationChannelGroup.isBlocked() 和 NotificationManager.areNotificationsEnabled()。

Android 參考資料。android.app.NotificationChannel.getImportance

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

適用於