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.
Java文档android.content.pm.PackageInstaller.SessionParams.setInstallLocation(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。