ServiceAttribute Clase

Definición

Genera un /manifest/application/service elemento dentro de AndroidManifest.xml.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class ServiceAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ServiceAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
Herencia
ServiceAttribute
Atributos
Implementaciones

Comentarios

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

Constructores

ServiceAttribute()

Construye e inicializa una nueva ServiceAttribute instancia.

Propiedades

DirectBootAware

Genera un /manifest/application/service elemento dentro de AndroidManifest.xml.

Enabled

Si el sistema puede crear instancias del servicio o no.

Exported

Si los componentes de otras aplicaciones pueden iniciar o no el servicio.

ForegroundServiceType

Genera un /manifest/application/service elemento dentro de AndroidManifest.xml.

Icon

Icono que representa el servicio.

IsolatedProcess

Genera un /manifest/application/service elemento dentro de AndroidManifest.xml.

Label

Una etiqueta legible para el servicio.

Name

Nombre de la clase que implementa el servicio.

Permission

Nombre de un permiso que los clientes deben tener para iniciar el servicio.

Process

Nombre del proceso en el que se debe ejecutar el servicio.

RoundIcon

Genera un /manifest/application/service elemento dentro de AndroidManifest.xml.

Se aplica a

Consulte también