语言

ApplicationAttribute 类

定义

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

[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class ApplicationAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ApplicationAttribute = class
    inherit Attribute
    interface IJniNameProviderAttribute
继承
ApplicationAttribute
属性
实现

注解

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

构造函数

名称 说明
ApplicationAttribute()

构造并初始化新 ApplicationAttribute 实例。

属性

名称 说明
AllowBackup
AllowClearUserData

是否为用户提供了删除用户 ata 的选项。

AllowCrossUidActivitySwitchFromBelow
AllowNativeHeapPointerTagging
AllowTaskReparenting

应用程序定义的活动是否可以从启动任务的任务移动到他们与该任务下一步带到前方时具有相关性的任务。

AppCategory
BackupAgent

实现应用程序的备份代理的类型。

BackupInForeground
Banner
DataExtractionRules
Debuggable

是否可以调试应用程序。

Description

有关应用程序的用户可读文本,比应用程序标签更具描述性。

DirectBootAware
Enabled

Android 系统是否可以实例化应用程序的组件。

EnableOnBackInvokedCallback

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

ExtractNativeLibs
FullBackupContent
FullBackupOnly
GwpAsanMode
HardwareAccelerated

是否应为此应用程序中的所有活动和视图启用硬件加速呈现。

HasCode

应用程序是否包含任何代码。

HasFragileUserData
Icon

表示应用程序的图标。

KillAfterRestore

应用程序是否应在完整系统还原操作期间还原其设置后终止。

Label

应用程序的用户可读标签。

LargeHeap

是否应使用大型 Dalvik 堆创建应用程序。

Logo

包含应用程序徽标的 Android 资源作为漏洞,以及未指定徽标的活动。

ManageSpaceActivity

系统 Activity 可以启动以允许用户管理设备上应用程序占用的内存。

Name

TODO:不支持。 实现应用程序的类的名称。

NetworkSecurityConfig
PageSizeCompat

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

Permission

客户端必须必须启动应用程序的权限的名称。

Persistent

应用程序是否应始终保持运行状态。

Process

应用程序应在其中运行的进程的名称。

RequestLegacyExternalStorage
RequiredAccountType
ResizeableActivity
RestoreAnyVersion
RestrictedAccountType
RoundIcon
SupportsRtl
TaskAffinity

应用程序关联的任务。

TestOnly
Theme

对为应用程序定义整体主题的样式资源的引用。

UiOptions

应用程序 UI 的额外选项。

UsesCleartextTraffic
VMSafeMode

显式接口实现

名称 说明
IJniNameProviderAttribute.Name

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

适用于