PrepareEnvironmentRequest

class PrepareEnvironmentRequest : Parcelable


Data interface for a request to the DeviceSecurityPostureClient.prepareEnvironment.

Summary

Constants

const Int

The operation to install the device policy app.

const Int

The operation to update the device policy app.

Public constructors

PrepareEnvironmentRequest(devicePolicyOperation: Int)

Public functions

final Int
open Unit
writeToParcel(dest: Parcel, flags: Int)

Public properties

Int

The operation to be performed on the device policy app.

Constants

INSTALL_DEVICE_POLICY_APP

const val INSTALL_DEVICE_POLICY_APP = 1: Int

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

const val UPDATE_DEVICE_POLICY_APP = 2: Int

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

PrepareEnvironmentRequest(devicePolicyOperation: Int)

Public functions

describeContents

final fun describeContents(): Int

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Public properties

devicePolicyOperation

val devicePolicyOperationInt

The operation to be performed on the device policy app.

The value can be either INSTALL_DEVICE_POLICY_APP or UPDATE_DEVICE_POLICY_APP.