PackageInstaller.SessionParams.SetUnarchiveId(Int32) 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.
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.