Udostępnij za pośrednictwem


PackageInstaller.SessionParams.SetInstallReason(PackageInstallReason) Method

Definition

Set the reason for installing this package.

[Android.Runtime.Register("setInstallReason", "(I)V", "GetSetInstallReason_IHandler", ApiSince=26)]
public virtual void SetInstallReason (Android.Content.PM.PackageInstallReason installReason);
[<Android.Runtime.Register("setInstallReason", "(I)V", "GetSetInstallReason_IHandler", ApiSince=26)>]
abstract member SetInstallReason : Android.Content.PM.PackageInstallReason -> unit
override this.SetInstallReason : Android.Content.PM.PackageInstallReason -> unit

Parameters

installReason
PackageInstallReason
Attributes

Remarks

Set the reason for installing this package.

The install reason should be a pre-defined integer. The behavior is undefined if other values are used.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setInstallReason(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