Share via


PackageInstaller.SessionParams.SetAutoInstallDependenciesEnabled Method

Definition

Optionally indicate whether missing SDK or static shared library dependencies should be automatically fetched and installed when installing an app that wants to use these dependencies.

[Android.Runtime.Register("setAutoInstallDependenciesEnabled", "(Z)V", "GetSetAutoInstallDependenciesEnabled_ZHandler", ApiSince=36)]
public virtual void SetAutoInstallDependenciesEnabled(bool enableAutoInstallDependencies);
[<Android.Runtime.Register("setAutoInstallDependenciesEnabled", "(Z)V", "GetSetAutoInstallDependenciesEnabled_ZHandler", ApiSince=36)>]
abstract member SetAutoInstallDependenciesEnabled : bool -> unit
override this.SetAutoInstallDependenciesEnabled : bool -> unit

Parameters

enableAutoInstallDependencies
Boolean

true to enable auto-installation of missing SDK or static shared library dependencies, false to disable and fail immediately if dependencies aren't already installed.

Attributes

Remarks

Optionally indicate whether missing SDK or static shared library dependencies should be automatically fetched and installed when installing an app that wants to use these dependencies.

This feature is enabled by default. Note that in the case of a multi-package installation session, no dependencies will be automatically installed even if this field is set to true.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setAutoInstallDependenciesEnabled(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