Compartir a través de


ServiceInfo.ForegroundServiceTypeSystemExempted Campo

Definición

Precaución

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

Constante correspondiente a systemExempted en el android.R.attr#foregroundServiceType atributo .

[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)]
public const Android.Content.PM.ForegroundService ForegroundServiceTypeSystemExempted = 1024;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceTypeSystemExempted : Android.Content.PM.ForegroundService

Valor de campo

Value = 1024

Implementaciones

Atributos

Comentarios

Constante correspondiente a systemExempted en el android.R.attr#foregroundServiceType atributo . Casos de uso del servicio en primer plano exentos del sistema.

<p class="note"Note,> las aplicaciones solo pueden usar este tipo en los casos siguientes: <ul><li>App tiene un UID < android.os.Process#FIRST_APPLICATION_UID</li>li App is on Doze allowlist</li li>><Device is running in Demo Mode</li><>Li Device owner app</li>><li Li Profile owner apps</li><>Li Persistent apps</li<>li>Li Privileged apps</li Li><>Apps that have the android.app.role.RoleManager#ROLE_EMERGENCY role</li<>li>Li Headless system apps</li<>><>Aplicaciones de administración de dispositivos/li li>><Aplicaciones< VPN activas/li><>Aplicaciones li que contienen android.Manifest.permission#SCHEDULE_EXACT_ALARM o android.Manifest.permission#USE_EXACT_ALARM permiso.<</li></ul></p>

Documentación de Java para android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código abierto de Android y se usan según los términos descritos en la licencia de atribución de Creative Commons 2.5.

Se aplica a