PackageInstaller.SessionParams.SetAutoInstallDependenciesEnabled 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.
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.
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.