ApplicationInfo.GetCategoryTitleFormatted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return a concise, localized title for the given
ApplicationInfo#category value, or null for unknown
values such as #CATEGORY_UNDEFINED.
[Android.Runtime.Register("getCategoryTitle", "(Landroid/content/Context;I)Ljava/lang/CharSequence;", "", ApiSince=26)]
public static Java.Lang.ICharSequence? GetCategoryTitleFormatted(Android.Content.Context? context, Android.Content.PM.ApplicationCategories category);
[<Android.Runtime.Register("getCategoryTitle", "(Landroid/content/Context;I)Ljava/lang/CharSequence;", "", ApiSince=26)>]
static member GetCategoryTitleFormatted : Android.Content.Context * Android.Content.PM.ApplicationCategories -> Java.Lang.ICharSequence
Parameters
- context
- Context
The context used to load the category's localized string resource.
- category
- ApplicationCategories
Value is one of the following: CATEGORY_UNDEFINED; CATEGORY_GAME; CATEGORY_AUDIO; CATEGORY_VIDEO; CATEGORY_IMAGE; CATEGORY_SOCIAL; CATEGORY_NEWS; CATEGORY_MAPS; CATEGORY_PRODUCTIVITY; CATEGORY_ACCESSIBILITY
Returns
The localized title for a recognized category, or null when the category is not recognized.
- Attributes
Remarks
Return a concise, localized title for the given ApplicationInfo#category value, or null for unknown values such as #CATEGORY_UNDEFINED.
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.