語言

BroadcastReceiverAttribute 類別

定義

生成/manifest/application/receiver一個元素。AndroidManifest.xml

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public class BroadcastReceiverAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type BroadcastReceiverAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
繼承
BroadcastReceiverAttribute
屬性
實作

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

建構函式

名稱 Description
BroadcastReceiverAttribute()

建構並初始化一個新 BroadcastReceiverAttribute 實例。

屬性

名稱 Description
Description

取得或設定為 Android 元件宣告的描述。

DirectBootAware

在使用者解鎖裝置前,取得或設定 Android 元件是否能執行。

Enabled

系統是否能實例化接收器。

Exported

接收器是否能由其他應用程式的元件啟動。

Icon

一個代表接收器的圖示。

Label

一個使用者可閱讀的接收器標籤。

Name

實作接收器的類別名稱。

Permission

用戶端啟動接收器必須取得的權限名稱。

Process

接收器應執行的程序名稱。

RoundIcon

取得或設定為 Android 元件宣告的圓形圖示。

明確介面實作

名稱 Description
IJniNameProviderAttribute.Name

生成/manifest/application/receiver一個元素。AndroidManifest.xml

適用於

另請參閱