Share via


PackageInstaller.SessionParams.SetUnarchiveId(Int32) Method

Definition

Used to set the unarchive ID received as part of an Intent#ACTION_UNARCHIVE_PACKAGE.

[Android.Runtime.Register("setUnarchiveId", "(I)V", "GetSetUnarchiveId_IHandler", ApiSince=35)]
public virtual void SetUnarchiveId (int unarchiveId);
[<Android.Runtime.Register("setUnarchiveId", "(I)V", "GetSetUnarchiveId_IHandler", ApiSince=35)>]
abstract member SetUnarchiveId : int -> unit
override this.SetUnarchiveId : int -> unit

Parameters

unarchiveId
Int32
Attributes

Remarks

Used to set the unarchive ID received as part of an Intent#ACTION_UNARCHIVE_PACKAGE.

The ID should be retrieved from the unarchive intent and passed into the session that's being created to unarchive the app in question. Used to link the unarchive intent and the install session to disambiguate.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setUnarchiveId(int).

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