語言

StopForegroundFlags 列舉

定義

public enum StopForegroundFlags
type StopForegroundFlags = 
繼承
StopForegroundFlags

欄位

名稱 值 Description
Legacy 0

此常數在 API 等級 33 中被棄用。

Remove 1

stopForeground(int) 選擇器:若提供,先前提供給 startForeground(int, 通知)的通知將被取消並從顯示中移除。

Detach 2

stopForeground(int) 選擇器:若設定為 startForeground(int, Notification) 的通知將從服務生命週期中分離。

備註

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

適用於