Język

ApplicationAttribute Class

Definition

Generates a /manifest/application element within 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
Inheritance
ApplicationAttribute
Attributes
Implements

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
ApplicationAttribute()

Constructs and initializes a new ApplicationAttribute instance.

Properties

Name Description
AllowBackup

Gets or sets the application's declared participation in platform backup and restore.

AllowClearUserData

Whether or not users are given the option to remove user ata.

AllowCrossUidActivitySwitchFromBelow

Gets or sets the application's manifest declaration for cross-UID activity switches from below.

AllowNativeHeapPointerTagging

Gets or sets whether the application requests tagged native-heap pointers on compatible devices.

AllowTaskReparenting

Whether or not activities that the application defines can move from the task that started them to the task they have an affinity for when that task is next brought to the front.

AppCategory

Gets or sets the category used to group the application in system usage summaries.

BackupAgent

The type that implements the application's backup agent.

BackupInForeground

Gets or sets whether full-data backup is permitted while the application is in a foreground-equivalent state.

Banner

Gets or sets the default banner drawable resource for the application's Leanback activities.

DataExtractionRules

Gets or sets the XML resource defining which application data can be backed up or transferred.

Debuggable

Whether or not the application can be debugged.

Description

User-readable text about the application, longer and more descriptive than the application label.

DirectBootAware

Gets or sets the application's declaration that it supports the direct-boot lifecycle.

Enabled

Whether or not the Android system can instantiate components of the application.

EnableOnBackInvokedCallback

Gets or sets the application's choice of back-invoked callbacks instead of legacy back events.

ExtractNativeLibs

Gets or sets the manifest request for extraction of packaged native libraries during installation.

FullBackupContent

Gets or sets the Boolean full-app backup declaration supported by this managed attribute.

FullBackupOnly

Gets or sets whether the application requests full-data backup rather than key-value backup.

GwpAsanMode

Gets or sets the requested GWP-ASan policy for sampled native-memory error detection.

HardwareAccelerated

Whether or not hardware-accelerated rendering should be enabled for all Activities and Views within this application.

HasCode

Whether or not the application contains any code.

HasFragileUserData

Gets or sets whether uninstall should offer the user a choice to retain application data.

Icon

An icon representing the application.

KillAfterRestore

Whether the application should be terminated after its settings have been restored during a full-system restore operation.

Label

A user-readable label for the application.

LargeHeap

Whether or not the application should be created with a large Dalvik heap.

Logo

The Android resource which contains the logo for the application as a hole, and for Activities which don't specify a logo.

ManageSpaceActivity

The Activity that the system can launch to let users manage the memory occupied by the application on the device.

Name

TODO: Not supported. The name of the class to that implements the application.

NetworkSecurityConfig

Gets or sets the application's network-security configuration XML resource.

PageSizeCompat

Gets or sets the application's page-size compatibility declaration for 16 KB devices.

Permission

The name of a permission that clients must have to launch the application.

Persistent

Whether or not the application should remain running at all times.

Process

The name of the process in which the application should run.

RequestLegacyExternalStorage

Gets or sets whether the application requests the legacy external-storage model.

RequiredAccountType

Gets or sets the account type declared as required by the application.

ResizeableActivity

Gets or sets the application-level declaration of support for resizable activities.

RestoreAnyVersion

Gets or sets whether restore may be attempted from a backup made by a newer application version.

RestrictedAccountType

Gets or sets the restricted-account type the application requests access to.

RoundIcon

Gets or sets the drawable resource used as the application's round icon.

SupportsRtl

Gets or sets whether the application declares support for right-to-left layouts.

TaskAffinity

The task that the application has an affinity for.

TestOnly

Gets or sets whether the application declares that it is intended only for testing.

Theme

A reference to a style resource defining an overall theme for the application.

UiOptions

Extra options for the application's UI.

UsesCleartextTraffic

Gets or sets the application's declaration of intended cleartext network use.

VMSafeMode

Gets or sets whether the application requests safe-mode operation of the virtual machine.

Explicit Interface Implementations

Name Description
IJniNameProviderAttribute.Name

Gets the attribute's name with a null value replaced by an empty string.

Applies to