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

适用于 . 的 android.content.pm.PackageInstaller.SessionParams.setInstallLocation(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于