ServiceAttribute クラス

定義

/manifest/application/service内で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
継承
ServiceAttribute
属性
実装

注釈

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

コンストラクター

名前 説明
ServiceAttribute()

新しい ServiceAttribute インスタンスを構築して初期化します。

プロパティ

名前 説明
Description

/manifest/application/service内でAndroidManifest.xml要素を生成します。

DirectBootAware

/manifest/application/service内でAndroidManifest.xml要素を生成します。

Enabled

サービスをシステムによってインスタンス化できるかどうか。

Exported

他のアプリケーションのコンポーネントによってサービスを起動できるかどうか。

ForegroundServiceType

/manifest/application/service内でAndroidManifest.xml要素を生成します。

Icon

サービスを表すアイコン。

IsolatedProcess

/manifest/application/service内でAndroidManifest.xml要素を生成します。

Label

サービスのユーザーが読み取り可能なラベル。

Name

サービスを実装するクラスの名前。

Permission

クライアントがサービスを起動するために必要なアクセス許可の名前。

Process

サービスを実行するプロセスの名前。

RoundIcon

/manifest/application/service内でAndroidManifest.xml要素を生成します。

明示的なインターフェイスの実装

名前 説明
IJniNameProviderAttribute.Name

/manifest/application/service内でAndroidManifest.xml要素を生成します。

適用対象