Language

PackageInstallUserAction Enum

Definition

Specifies the requested user-action policy for an installation session.

public enum PackageInstallUserAction
type PackageInstallUserAction = 
Inheritance
PackageInstallUserAction

Fields

Name Value Description
Unspecified 0

This value is passed by the installer to SessionParams.setRequireUserAction(int) to indicate that user action is unspecified for this install. requireUserAction also defaults to this value unless modified by SessionParams.setRequireUserAction(int)

Android reference for android.content.pm.PackageInstaller.SessionParams.USER_ACTION_UNSPECIFIED.

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.

Required 1

This value is passed by the installer to SessionParams.setRequireUserAction(int) to indicate that user action is required for this install.

Android reference for android.content.pm.PackageInstaller.SessionParams.USER_ACTION_REQUIRED.

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.

NotRequired 2

This value is passed by the installer to SessionParams.setRequireUserAction(int) to indicate that user action is not required for this install.

Android reference for android.content.pm.PackageInstaller.SessionParams.USER_ACTION_NOT_REQUIRED.

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.

Remarks

The values distinguish an unspecified request from requests that user action be required or not required. The session APIs define when each request can be honored.

Applies to