PackageInstaller.SessionParams.SetDontKillApp(Boolean) 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 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.