Notification.ForegroundServiceImmediate 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.
如果與啟動前景服務相關的通知是使用 Notification.Builder.setForegroundServiceBehavior(int) 建立的,並帶有此行為,即使預設行為是暫時延遲可見,通知也會立即顯示。
[Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)]
public const Android.App.NotificationForegroundService ForegroundServiceImmediate = 1;
[<Android.Runtime.Register("FOREGROUND_SERVICE_IMMEDIATE", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.NotificationForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceImmediate : Android.App.NotificationForegroundService
欄位值
Value = 1實作
- 屬性
備註
如果與啟動前景服務相關的通知是使用 Notification.Builder.setForegroundServiceBehavior(int) 建立的,並帶有此行為,即使預設行為是暫時延遲可見,通知也會立即顯示。 價值是以下之一:FOREGROUND_SERVICE_DEFAULT FOREGROUND_SERVICE_IMMEDIATE FOREGROUND_SERVICE_DEFERRED
Android 參考資料。android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。