PackageInstaller.SessionParams.SetDontKillApp(Boolean) Method

Definition

Requests that the system not kill any of the package's running processes as part of a SessionParams#MODE_INHERIT_EXISTING session in which splits being added.

[Android.Runtime.Register("setDontKillApp", "(Z)V", "GetSetDontKillApp_ZHandler", ApiSince=34)]
public virtual void SetDontKillApp (bool dontKillApp);
[<Android.Runtime.Register("setDontKillApp", "(Z)V", "GetSetDontKillApp_ZHandler", ApiSince=34)>]
abstract member SetDontKillApp : bool -> unit
override this.SetDontKillApp : bool -> unit

Parameters

dontKillApp
Boolean

set to true to request that the processes belonging to the package not be killed as part of this install.

Attributes

Remarks

Requests that the system not kill any of the package's running processes as part of a SessionParams#MODE_INHERIT_EXISTING session in which splits being added. By default, all installs will result in the package's running processes being killed before the install completes.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setDontKillApp(boolean).

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