PackageInstaller.RequestUnarchive(String, IntentSender) 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.
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
.
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.