Język

PackageInstaller.InstallPackageArchived Method

Definition

Install package in an archived state.

[Android.Runtime.Register("installPackageArchived", "(Landroid/content/pm/ArchivedPackageInfo;Landroid/content/pm/PackageInstaller$SessionParams;Landroid/content/IntentSender;)V", "GetInstallPackageArchived_Landroid_content_pm_ArchivedPackageInfo_Landroid_content_pm_PackageInstaller_SessionParams_Landroid_content_IntentSender_Handler", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.INSTALL_PACKAGES")]
public virtual void InstallPackageArchived(Android.Content.PM.ArchivedPackageInfo archivedPackageInfo, Android.Content.PM.PackageInstaller.SessionParams sessionParams, Android.Content.IntentSender statusReceiver);
[<Android.Runtime.Register("installPackageArchived", "(Landroid/content/pm/ArchivedPackageInfo;Landroid/content/pm/PackageInstaller$SessionParams;Landroid/content/IntentSender;)V", "GetInstallPackageArchived_Landroid_content_pm_ArchivedPackageInfo_Landroid_content_pm_PackageInstaller_SessionParams_Landroid_content_IntentSender_Handler", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.INSTALL_PACKAGES")>]
abstract member InstallPackageArchived : Android.Content.PM.ArchivedPackageInfo * Android.Content.PM.PackageInstaller.SessionParams * Android.Content.IntentSender -> unit
override this.InstallPackageArchived : Android.Content.PM.ArchivedPackageInfo * Android.Content.PM.PackageInstaller.SessionParams * Android.Content.IntentSender -> unit

Parameters

archivedPackageInfo
ArchivedPackageInfo

archived package data such as package name, signature etc. This value cannot be null.

sessionParams
PackageInstaller.SessionParams

used to create an underlying installation session. This value cannot be null.

statusReceiver
IntentSender

Called when the state of the session changes. Intents sent to this receiver contain EXTRA_STATUS. Refer to the individual status codes on how to handle them. This value cannot be null.

Attributes

Remarks

Install package in an archived state. Requires Manifest.permission.INSTALL_PACKAGES

Android reference for android.content.pm.PackageInstaller.installPackageArchived.

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