語言

NotificationManager.ImportanceMin 欄位

定義

警告

This constant will be removed in the future version. Use Android.App.NotificationImportance enum directly instead of this field.

最小通知重要性:只顯示在陰影中,摺疊下方。

[Android.Runtime.Register("IMPORTANCE_MIN", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationImportance enum directly instead of this field.", true)]
public const Android.App.NotificationImportance ImportanceMin = 1;
[<Android.Runtime.Register("IMPORTANCE_MIN", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationImportance enum directly instead of this field.", true)>]
val mutable ImportanceMin : Android.App.NotificationImportance

欄位值

Value = 1
屬性

備註

最小通知重要性:只顯示在陰影中,摺疊下方。 這不應用於 Service.startForeground,因為前景服務應該是使用者關心的,因此將通知標記為最低重要性在語意上不合邏輯。 如果你是從 Android 版本 Build.VERSION_CODES 開始這樣做。O,系統會在背景顯示更高優先級的通知,告知你的應用程式正在運行。

Android 參考資料。android.app.NotificationManager.IMPORTANCE_MIN

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

適用於