Udostępnij za pośrednictwem


PackageInstaller.SessionParams.SetInstallLocation Method

Definition

Provide value of PackageInfo#installLocation, which may be used to determine where the app will be staged.

[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

Parameters

installLocation
PackageInstallLocation
Attributes

Remarks

Provide value of PackageInfo#installLocation, which may be used to determine where the app will be staged. Defaults to PackageInfo#INSTALL_LOCATION_INTERNAL_ONLY.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setInstallLocation(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to