Język

MockPackageManager.RemovePackageFromPreferred(String) Method

Definition

Caution

deprecated

Throws UnsupportedOperationException. Override this method to remove a preferred package in a test.

[Android.Runtime.Register("removePackageFromPreferred", "(Ljava/lang/String;)V", "GetRemovePackageFromPreferred_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public override void RemovePackageFromPreferred(string? packageName);
[<Android.Runtime.Register("removePackageFromPreferred", "(Ljava/lang/String;)V", "GetRemovePackageFromPreferred_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
override this.RemovePackageFromPreferred : string -> unit

Parameters

packageName
String

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

Attributes

Remarks

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