語言

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
屬性
實作

備註

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

建構函式

名稱 Description
ApplicationAttribute()

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

屬性

名稱 Description
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 資源中包含應用程式標誌的洞,以及活動(Activities)但未指定標誌。

ManageSpaceActivity

系統 Activity 可以啟動,讓使用者管理裝置上應用程式所佔用的記憶體。

Name

TODO:不支援。 實作該應用程式的類別名稱。

NetworkSecurityConfig
PageSizeCompat

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

Permission

啟動應用程式時,客戶端必須擁有的權限名稱。

Persistent

應用程式是否應該一直持續運行。

Process

應用程式應該執行的程序名稱。

RequestLegacyExternalStorage
RequiredAccountType
ResizeableActivity
RestoreAnyVersion
RestrictedAccountType
RoundIcon
SupportsRtl
TaskAffinity

應用程式所擅長的任務。

TestOnly
Theme

參考一個風格資源,定義應用程式的整體主題。

UiOptions

應用程式介面的額外選項。

UsesCleartextTraffic
VMSafeMode

明確介面實作

名稱 Description
IJniNameProviderAttribute.Name

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

適用於