ServiceAttribute 클래스

정의

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

[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
상속
ServiceAttribute
특성
구현

설명

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

생성자

Name Description
ServiceAttribute()

ServiceAttribute 인스턴스를 생성하고 초기화합니다.

속성

Name Description
Description

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

DirectBootAware

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

Enabled

시스템에서 서비스를 인스턴스화할 수 있는지 여부입니다.

Exported

다른 애플리케이션의 구성 요소에서 서비스를 시작할 수 있는지 여부입니다.

ForegroundServiceType

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

Icon

서비스를 나타내는 아이콘입니다.

IsolatedProcess

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

Label

서비스에 대한 사용자가 읽을 수 있는 레이블입니다.

Name

서비스를 구현하는 클래스의 이름입니다.

Permission

클라이언트가 서비스를 시작해야 하는 사용 권한의 이름입니다.

Process

서비스가 실행되어야 하는 프로세스의 이름입니다.

RoundIcon

내에서 AndroidManifest.xml요소를 생성합니다/manifest/application/service.

적용 대상

추가 정보