Language

MockPackageManager.SetApplicationCategoryHint(String, Int32) Method

Definition

Throws UnsupportedOperationException. Override this method to set an application category hint in a test.

[Android.Runtime.Register("setApplicationCategoryHint", "(Ljava/lang/String;I)V", "GetSetApplicationCategoryHint_Ljava_lang_String_IHandler", ApiSince=26)]
public override void SetApplicationCategoryHint(string? packageName, int categoryHint);
[<Android.Runtime.Register("setApplicationCategoryHint", "(Ljava/lang/String;I)V", "GetSetApplicationCategoryHint_Ljava_lang_String_IHandler", ApiSince=26)>]
override this.SetApplicationCategoryHint : string * int -> unit

Parameters

packageName
String

The package name. Available to a test override; the default mock implementation does not use this argument.

categoryHint
Int32

The proposed application category. Available to a test override; the default mock implementation does not use this argument.

Attributes

Remarks

Java documentation for android.test.mock.MockPackageManager.setApplicationCategoryHint(java.lang.String, int).

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