Partager via


PackageInstaller.RequestUnarchive(String, IntentSender) Method

Definition

Requests to unarchive a currently archived package.

[Android.Runtime.Register("requestUnarchive", "(Ljava/lang/String;Landroid/content/IntentSender;)V", "GetRequestUnarchive_Ljava_lang_String_Landroid_content_IntentSender_Handler", ApiSince=35)]
public virtual void RequestUnarchive (string packageName, Android.Content.IntentSender statusReceiver);
[<Android.Runtime.Register("requestUnarchive", "(Ljava/lang/String;Landroid/content/IntentSender;)V", "GetRequestUnarchive_Ljava_lang_String_Landroid_content_IntentSender_Handler", ApiSince=35)>]
abstract member RequestUnarchive : string * Android.Content.IntentSender -> unit
override this.RequestUnarchive : string * Android.Content.IntentSender -> unit

Parameters

packageName
String
statusReceiver
IntentSender

Callback used to notify whether the installer has accepted the unarchival request or an error has occurred. The status update will be sent though #EXTRA_UNARCHIVE_STATUS. Only one status will be sent.

Attributes

Remarks

Requests to unarchive a currently archived package.

Sends a request to unarchive an app to the responsible installer. The installer is determined by InstallSourceInfo#getUpdateOwnerPackageName(), or InstallSourceInfo#getInstallingPackageName() if the former value is null.

The installation will happen asynchronously and can be observed through android.content.Intent#ACTION_PACKAGE_ADDED.

Java documentation for android.content.pm.PackageInstaller.requestUnarchive(java.lang.String, android.content.IntentSender).

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