MockPackageManager.SetInstallerPackageName(String, String) Method

Definition

Change the installer associated with a given package.

[Android.Runtime.Register("setInstallerPackageName", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetInstallerPackageName_Ljava_lang_String_Ljava_lang_String_Handler")]
public override void SetInstallerPackageName (string? targetPackage, string? installerPackageName);
[<Android.Runtime.Register("setInstallerPackageName", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetInstallerPackageName_Ljava_lang_String_Ljava_lang_String_Handler")>]
override this.SetInstallerPackageName : string * string -> unit

Parameters

targetPackage
String

The installed package whose installer will be changed.

installerPackageName
String

The package name of the new installer. May be null to clear the association.

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