Android.Content.PM.ServiceInfo.FlagStopWithTask Field
Bit in ServiceInfo.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.

Value: 1

Syntax

[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.")]
public const ServiceInfoFlags FlagStopWithTask

Remarks

Bit in ServiceInfo.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 NoType:android/R$attr;Href=../../../../reference/android/R.attr.html#stopWithTask attribute.

[Android Documentation]

Requirements

Namespace: Android.Content.PM
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14