Udostępnij za pośrednictwem


ServiceInfo.FlagStopWithTask Field

Definition

Caution

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

Bit in #flags: If set, the service will automatically be stopped by the system if the user removes a task that is rooted in one of the application's activities.

[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

Field Value

Value = 1

Implements

Attributes

Remarks

Bit in #flags: If set, the service will automatically be stopped by the system if the user removes a task that is rooted in one of the application's activities. Set from the android.R.attr#stopWithTask attribute.

Java documentation for android.content.pm.ServiceInfo.FLAG_STOP_WITH_TASK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to