PackageInstaller.SessionParams.SetInstallLocation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供值 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 属性许可证中所述的术语使用。