DeviceSecurityPostureClient

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


A client for the Device Posture API.

Summary

Public methods

abstract @NonNull Task<@NonNull PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

abstract @NonNull Task<@NonNull PrepareEnvironmentResponse>

Initiates an Android Device Policy installation or update.

Public methods

prepareEnvironment

abstract @NonNull Task<@NonNull PrepareEnvironmentResponseprepareEnvironment(@NonNull PrepareEnvironmentRequest request)

Initiates an Android Device Policy installation or update.

Parameters
@NonNull PrepareEnvironmentRequest request

The request object.

Returns
@NonNull Task<@NonNull PrepareEnvironmentResponse>

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

prepareEnvironment

abstract @NonNull Task<@NonNull PrepareEnvironmentResponseprepareEnvironment(
    @NonNull PrepareEnvironmentRequest request,
    @NonNull PrepareEnvironmentCallback callback
)

Initiates an Android Device Policy installation or update.

Parameters
@NonNull PrepareEnvironmentRequest request

The request object.

@NonNull PrepareEnvironmentCallback callback

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

Returns
@NonNull Task<@NonNull PrepareEnvironmentResponse>

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