BroadcastReceiverAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
生成/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 |
生成 |