Udostępnij za pośrednictwem


PackageManager.InstallScenarioBulk Field

Definition

Caution

This constant will be removed in the future version. Use Android.Content.PM.PackageInstallScenario enum directly instead of this field.

Installation scenario indicating a bulk operation with the desired result of a fully optimized application.

[Android.Runtime.Register("INSTALL_SCENARIO_BULK", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.PackageInstallScenario enum directly instead of this field.", true)]
public const Android.Content.PM.PackageInstallScenario InstallScenarioBulk = 2;
[<Android.Runtime.Register("INSTALL_SCENARIO_BULK", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.PackageInstallScenario enum directly instead of this field.", true)>]
val mutable InstallScenarioBulk : Android.Content.PM.PackageInstallScenario

Field Value

Value = 2
Attributes

Remarks

Installation scenario indicating a bulk operation with the desired result of a fully optimized application. If the system is busy or resources are scarce the system will perform less work to avoid impacting system health.

Examples of bulk installation scenarios might include device restore, background updates of multiple applications, or user-triggered updates for all applications.

The decision to use BULK or BULK_SECONDARY should be based on the desired user experience. BULK_SECONDARY operations may take less time to complete but, when they do, will produce less optimized applications. The device state (e.g. memory usage or battery status) should not be considered when making this decision as those factors are taken into account by the Package Manager when acting on the installation scenario.

Java documentation for android.content.pm.PackageManager.INSTALL_SCENARIO_BULK.

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