PrepareEnvironmentRequest

public final class PrepareEnvironmentRequest implements Parcelable


Data interface for a request to the DeviceSecurityPostureClient.prepareEnvironment.

Summary

Constants

static final int

The operation to install the device policy app.

static final int

The operation to update the device policy app.

Public constructors

PrepareEnvironmentRequest(int devicePolicyOperation)

Public methods

final int
final int

The operation to be performed on the device policy app.

void
writeToParcel(@NonNull Parcel dest, int flags)

Constants

INSTALL_DEVICE_POLICY_APP

public static final int INSTALL_DEVICE_POLICY_APP = 1

The operation to install the device policy app.

Installation requires end-user permission, hence this param triggers user consent, and proceeds with installation if user consent is accepted. If the app is already installed, then no consent is shown, and app is updated to the latest version.

UPDATE_DEVICE_POLICY_APP

public static final int UPDATE_DEVICE_POLICY_APP = 2

The operation to update the device policy app. This is performed in background. Returns error if the app is not already installed.

Public constructors

PrepareEnvironmentRequest

public PrepareEnvironmentRequest(int devicePolicyOperation)

Public methods

describeContents

public final int describeContents()

getDevicePolicyOperation

public final int getDevicePolicyOperation()

The operation to be performed on the device policy app.

The value can be either INSTALL_DEVICE_POLICY_APP or UPDATE_DEVICE_POLICY_APP.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)