语言

ApplicationInfo.Category 属性

定义

此应用的类别。

[Android.Runtime.GeneratedEnum]
[Android.Runtime.Register("category", ApiSince=26)]
public Android.Content.PM.ApplicationCategories Category { get; set; }
[<Android.Runtime.GeneratedEnum>]
[<Android.Runtime.Register("category", ApiSince=26)>]
member this.Category : Android.Content.PM.ApplicationCategories with get, set

属性值

清单或安装程序提供的类别提示中的应用程序类别。

特性

注解

此应用的类别。 类别用于将多个应用聚集到有意义的组中,例如在汇总电池、网络或磁盘使用情况时。 应用应仅在适合特定类别之一时定义此值。 从清单中的 R.attr.appCategory 属性设置。 如果清单未定义类别,则安装程序可能已通过 PackageManager.setApplicationCategoryHint(String,int)提供此值。

Android 参考。android.content.pm.ApplicationInfo.category

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

适用于