Lenguaje

Service.StopForegroundDetach Campo

Definición

Precaución

This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.

Selector para #stopForeground(int): si se establece, la notificación proporcionada anteriormente #startForeground se desasociará del ciclo de vida del servicio.

[Android.Runtime.Register("STOP_FOREGROUND_DETACH", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.", true)]
public const Android.App.StopForegroundFlags StopForegroundDetach = 2;
[<Android.Runtime.Register("STOP_FOREGROUND_DETACH", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.StopForegroundFlags enum directly instead of this field.", true)>]
val mutable StopForegroundDetach : Android.App.StopForegroundFlags

Valor de campo

Value = 2
Atributos

Comentarios

Selector para stopForeground(int): si se establece, la notificación proporcionada anteriormente para startForeground(int, Notification) se desasociará del ciclo de vida del servicio. La notificación permanecerá mostrada incluso después de que el servicio se detenga y destruya.

Referencia de Android para android.app.Service.STOP_FOREGROUND_DETACH.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a