다음을 통해 공유


PackageInstaller.SessionParams.SetMultiPackage Method

Definition

Set this session to be the parent of a multi-package install.

[Android.Runtime.Register("setMultiPackage", "()V", "GetSetMultiPackageHandler", ApiSince=29)]
public virtual void SetMultiPackage ();
[<Android.Runtime.Register("setMultiPackage", "()V", "GetSetMultiPackageHandler", ApiSince=29)>]
abstract member SetMultiPackage : unit -> unit
override this.SetMultiPackage : unit -> unit
Attributes

Remarks

Set this session to be the parent of a multi-package install.

A multi-package install session contains no APKs and only references other install sessions via ID. When a multi-package session is committed, all of its children are committed to the system in an atomic manner. If any children fail to install, all of them do, including the multi-package session.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setMultiPackage().

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