PackageManager.SetApplicationCategoryHint(String, Int32) 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.
Provide a hint of what the ApplicationInfo#category
value should
be for the given package.
[Android.Runtime.Register("setApplicationCategoryHint", "(Ljava/lang/String;I)V", "GetSetApplicationCategoryHint_Ljava_lang_String_IHandler", ApiSince=26)]
public abstract void SetApplicationCategoryHint (string packageName, int categoryHint);
[<Android.Runtime.Register("setApplicationCategoryHint", "(Ljava/lang/String;I)V", "GetSetApplicationCategoryHint_Ljava_lang_String_IHandler", ApiSince=26)>]
abstract member SetApplicationCategoryHint : string * int -> unit
Parameters
- packageName
- String
the package to change the category hint for.
- categoryHint
- Int32
the category hint to set.
- Attributes
Remarks
Provide a hint of what the ApplicationInfo#category
value should be for the given package.
This hint can only be set by the app which installed this package, as determined by #getInstallerPackageName(String)
.
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.