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
属性
実装

注釈

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

コンストラクター

ServiceAttribute()

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

プロパティ

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生成します。

適用対象

こちらもご覧ください