語言

ServiceInfo.FlagStopWithTask 欄位

定義

警告

This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.

位元中的 #flags:若設定為,當使用者移除與應用程式某項活動相關的任務時,系統會自動停止該服務。

[Android.Runtime.Register("FLAG_STOP_WITH_TASK")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.", true)]
public const Android.Content.PM.ServiceInfoFlags FlagStopWithTask = 1;
[<Android.Runtime.Register("FLAG_STOP_WITH_TASK")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ServiceInfoFlags enum directly instead of this field.", true)>]
val mutable FlagStopWithTask : Android.Content.PM.ServiceInfoFlags

欄位值

Value = 1

實作

屬性

備註

位元中的 #flags:若設定為,當使用者移除與應用程式某項活動相關的任務時,系統會自動停止該服務。 從屬性 android.R.attr#stopWithTask 設定。

Java 文件 android.content.pm.ServiceInfo.FLAG_STOP_WITH_TASK。

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

適用於