Language

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

注釈

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

コンストラクター

Name 説明
ServiceAttribute()

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

プロパティ

Name 説明
Description
DirectBootAware
Enabled

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

Exported

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

ForegroundServiceType
Icon

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

IsolatedProcess
Label

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

Name

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

Permission

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

Process

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

RoundIcon

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

Name 説明
IJniNameProviderAttribute.Name

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

適用対象