语言

PackageInstaller.SessionParams.SetInstallLocation 方法

定义

提供值 PackageInfo#installLocation,该值可用于确定应用将暂存的位置。

[Android.Runtime.Register("setInstallLocation", "(I)V", "GetSetInstallLocation_IHandler")]
public virtual void SetInstallLocation(Android.Content.PM.PackageInstallLocation installLocation);
[<Android.Runtime.Register("setInstallLocation", "(I)V", "GetSetInstallLocation_IHandler")>]
abstract member SetInstallLocation : Android.Content.PM.PackageInstallLocation -> unit
override this.SetInstallLocation : Android.Content.PM.PackageInstallLocation -> unit

参数

installLocation
PackageInstallLocation

要记录用于暂存应用的安装位置策略。

特性

注解

提供值 PackageInfo#installLocation,该值可用于确定应用将暂存的位置。 默认值为 PackageInfo#INSTALL_LOCATION_INTERNAL_ONLY.

Java文档android.content.pm.PackageInstaller.SessionParams.setInstallLocation(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于