DeviceSecurityPostureClient

@DoNotMock(value = "Use canonical fakes instead.")
interface DeviceSecurityPostureClient : HasApiKey


A client for the Device Posture API.

Summary

Public functions

Task<PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

Task<PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

Public functions

prepareEnvironment

fun prepareEnvironment(request: PrepareEnvironmentRequest): Task<PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

Parameters
request: PrepareEnvironmentRequest

The request object.

Returns
Task<PrepareEnvironmentResponse>

Task which asynchronously prepares environment for the Android Management SDK APIs.

prepareEnvironment

fun prepareEnvironment(
    request: PrepareEnvironmentRequest,
    callback: PrepareEnvironmentCallback = object : PrepareEnvironmentCallback { override fun onAndroidDevicePolicyInstallConsentAccepted() {} }
): Task<PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

Parameters
request: PrepareEnvironmentRequest

The request object.

callback: PrepareEnvironmentCallback = object : PrepareEnvironmentCallback { override fun onAndroidDevicePolicyInstallConsentAccepted() {} }

The callback to be called when the user accepts the consent to install Android Device Policy.

Returns
Task<PrepareEnvironmentResponse>

Task which asynchronously prepares environment for the Android Management SDK APIs.