语言

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
属性
实现

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

构造函数

名称 说明
BroadcastReceiverAttribute()

构造并初始化新 BroadcastReceiverAttribute 实例。

属性

名称 说明
Description

获取或设置为 Android 组件声明的说明。

DirectBootAware

获取或设置 Android 组件是否可以在用户解锁设备之前运行。

Enabled

接收方是否可以由系统实例化。

Exported

接收方是否可以由其他应用程序的组件启动。

Icon

表示接收方的图标。

Label

接收方的用户可读标签。

Name

实现接收方的类的名称。

Permission

客户端必须必须启动接收方的权限的名称。

Process

接收方应在其中运行的进程的名称。

RoundIcon

获取或设置为 Android 组件声明的圆形图标。

显式接口实现

名称 说明
IJniNameProviderAttribute.Name

在 . 中/manifest/application/receiver生成元素AndroidManifest.xml

适用于

另请参阅