ActivityAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 . 中/manifest/application/activity生成元素AndroidManifest.xml
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
[System.Serializable]
public sealed class ActivityAttribute : Attribute, Java.Interop.IJniNameProviderAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
[<System.Serializable>]
type ActivityAttribute = class
inherit Attribute
interface IJniNameProviderAttribute
- 继承
-
ActivityAttribute
- 属性
- 实现
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
构造函数
| 名称 | 说明 |
|---|---|
| ActivityAttribute() |
构造并初始化新 ActivityAttribute 实例。 |
属性
| 名称 | 说明 |
|---|---|
| AllowEmbedded |
在 . 中 |
| AllowTaskReparenting |
活动是否可以从启动该活动的 tasdk 移动到具有关联性的任务。 |
| AlwaysRetainTaskState |
活动进入的任务的状态是否始终由系统维护。 |
| AutoRemoveFromRecents |
在 . 中 |
| Banner |
在 . 中 |
| CanDisplayOnRemoteDevices |
在 . 中 |
| ClearTaskOnLaunch |
无论是否从任务中删除所有活动(根活动除外)只要从主屏幕重新启动它。 |
| ColorMode |
在 . 中 |
| ConfigurationChanges |
配置将更改活动将自行处理。 |
| Description |
在 . 中 |
| DirectBootAware |
在 . 中 |
| DocumentLaunchMode |
在 . 中 |
| Enabled |
是否可以由系统实例化活动。 |
| EnableOnBackInvokedCallback |
在 . 中 |
| EnableVrMode |
在 . 中 |
| ExcludeFromRecents |
是否应将活动从最近启动的活动列表中排除。 |
| Exported |
活动是否可以由其他应用程序的组件启动。 |
| FinishOnCloseSystemDialogs |
在 . 中 |
| FinishOnTaskLaunch |
每当用户再次启动活动任务时,是否应关闭活动的现有实例。 |
| HardwareAccelerated |
在 . 中 |
| Icon |
表示活动的图标。 |
| Immersive |
在 . 中 |
| Label |
活动的用户可读标签。 |
| LaunchMode |
应如何启动活动。 |
| LayoutDirection |
已过时.
在 . 中 |
| LockTaskMode |
在 . 中 |
| Logo |
在 . 中 |
| MainLauncher |
活动是否应为应用程序的主要启动器。 |
| MaxAspectRatio |
在 . 中 |
| MaxRecents |
在 . 中 |
| MultiProcess |
活动实例是否可以启动到启动活动的组件进程中。 |
| Name |
实现活动的类的名称。 |
| NoHistory |
是否应从活动堆栈中删除活动,并在用户离开时完成。 |
| ParentActivity |
在 . 中 |
| Permission |
客户端必须必须启动活动的权限的名称。 |
| PersistableMode |
在 . 中 |
| Process |
活动应在其中运行的进程的名称。 |
| RecreateOnConfigChanges |
在 . 中 |
| RelinquishTaskIdentity |
在 . 中 |
| RequireContentUriPermissionFromCaller |
在 . 中 |
| ResizeableActivity |
在 . 中 |
| ResumeWhilePausing |
在 . 中 |
| RotationAnimation |
在 . 中 |
| RoundIcon |
在 . 中 |
| ScreenOrientation |
活动在设备上显示的方向。 |
| ShowForAllUsers |
在 . 中 |
| ShowOnLockScreen |
已过时.
在 . 中 |
| ShowWhenLocked |
在 . 中 |
| SingleUser |
在 . 中 |
| StateNotNeeded |
活动是否可以终止并成功重启,而无需保存其状态。 |
| SupportsPictureInPicture |
在 . 中 |
| TaskAffinity |
活动关联的任务。 |
| Theme |
对为活动定义整体主题的样式资源的引用。 |
| TurnScreenOn |
在 . 中 |
| UiOptions |
在 . 中 |
| VisibleToInstantApps |
在 . 中 |
| WindowSoftInputMode |
活动的主窗口如何与包含屏幕软键盘的窗互。 |