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)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。