Partager via


ActivityInfoFlags Enum

Definition

Enumerates values returned by several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum ActivityInfoFlags
[<System.Flags>]
type ActivityInfoFlags = 
Inheritance
ActivityInfoFlags
Attributes

Fields

Name Value Description
None 0
Multiprocess 1

Bit in Flagsindicating whether this activity is able to run in multiple processes.

FinishOnTaskLaunch 2
ClearTaskOnLaunch 4
AlwaysRetainTaskState 8

Bit in Flagsindicating that, when the activity is the root of a task, that task's stack should never be cleared when it is relaunched from home.

StateNotNeeded 16
ExcludeFromRecents 32

Bit in Flagsthat indicates that the activity should not appear in the list of recently launched activities.

AllowTaskReparenting 64

Bit in Flagsthat indicates that the activity can be moved between tasks based on its task affinity.

NoHistory 128
FinishOnCloseSystemDialogs 256
HardwareAccelerated 512

Value for Flags: true when the application's rendering should be hardware accelerated.

Immersive 2048
RelinquishTaskIdentity 4096
AutoRemoveFromRecents 8192
ResumeWhilePausing 16384
EnableVrMode 32768
PreferMinimalPostProcessing 33554432
AllowUntrustedActivityEmbedding 268435456
SingleUser 1073741824

Bit in Flags: If set, a single instance of the receiver will run for all users on the device.

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.

Applies to