PackageInstaller.RequestArchive(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 archive a package which is currently installed.
[Android.Runtime.Register("requestArchive", "(Ljava/lang/String;Landroid/content/IntentSender;)V", "GetRequestArchive_Ljava_lang_String_Landroid_content_IntentSender_Handler", ApiSince=35)]
public virtual void RequestArchive (string packageName, Android.Content.IntentSender statusReceiver);
[<Android.Runtime.Register("requestArchive", "(Ljava/lang/String;Landroid/content/IntentSender;)V", "GetRequestArchive_Ljava_lang_String_Landroid_content_IntentSender_Handler", ApiSince=35)>]
abstract member RequestArchive : string * Android.Content.IntentSender -> unit
override this.RequestArchive : string * Android.Content.IntentSender -> unit
Parameters
- packageName
- String
- statusReceiver
- IntentSender
Callback used to notify when the operation is completed.
- Attributes
Remarks
Requests to archive a package which is currently installed.
During the archival process, the apps APKs and cache are removed from the device while the user data is kept. Through the #requestUnarchive
call, apps can be restored again through their responsible installer.
Archived apps are returned as displayable apps through the LauncherApps
APIs and will be displayed to users with UI treatment to highlight that said apps are archived. If a user taps on an archived app, the app will be unarchived and the restoration process is communicated.
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.