public final enum

MAMCAComplianceStatus

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.microsoft.intune.mam.policy.MAMCAComplianceStatus

Class Overview

Enum of possible compliance statuses, returned via notification in an instance of MAMComplianceNotification after a call to MAMComplianceManager#remediateCompliance().

Summary

Enum Values
MAMCAComplianceStatus  CLIENT_ERROR  The attempt to remediate compliance failed for some reason related to the client. 
MAMCAComplianceStatus  COMPANY_PORTAL_REQUIRED  The Company Portal must be installed on the device in order for compliance remediation to succeed. 
MAMCAComplianceStatus  COMPLIANT  Compliance remediation succeeded and the app is now compliant with policy. 
MAMCAComplianceStatus  NETWORK_FAILURE  There was an error connecting to the Intune MAM Service. 
MAMCAComplianceStatus  NOT_COMPLIANT  The attempt to remediate compliance failed. 
MAMCAComplianceStatus  PENDING  The attempt to remediate compliance failed because the status response had not yet been received from the service when the time limit was exceeded. 
MAMCAComplianceStatus  SERVICE_FAILURE  There was a failure while attempting to retrieve compliance data from the Intune MAM Service. 
MAMCAComplianceStatus  UNKNOWN  Status is unknown. 
Public Methods
static MAMCAComplianceStatus fromCode(int code)
Get the enum item that corresponds to the integral code, or null.
int getCode()
Get the encoded version of the enum.
static MAMCAComplianceStatus valueOf(String name)
final static MAMCAComplianceStatus[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final MAMCAComplianceStatus CLIENT_ERROR

The attempt to remediate compliance failed for some reason related to the client. For example, no token or wrong user.

public static final MAMCAComplianceStatus COMPANY_PORTAL_REQUIRED

The Company Portal must be installed on the device in order for compliance remediation to succeed. If the Company Portal is already installed on the device, the app needs to be restarted.

public static final MAMCAComplianceStatus COMPLIANT

Compliance remediation succeeded and the app is now compliant with policy. The ADAL token acquisition can now be retried.

public static final MAMCAComplianceStatus NETWORK_FAILURE

There was an error connecting to the Intune MAM Service. The app should try again when the network connection is restored.

public static final MAMCAComplianceStatus NOT_COMPLIANT

The attempt to remediate compliance failed. The app is not compliant and ADAL token acquisition should not be retried. Additional error information is sent with the MAMComplianceNotification.

public static final MAMCAComplianceStatus PENDING

The attempt to remediate compliance failed because the status response had not yet been received from the service when the time limit was exceeded. The app should try again later.

public static final MAMCAComplianceStatus SERVICE_FAILURE

There was a failure while attempting to retrieve compliance data from the Intune MAM Service. Additional information may be found in the Company Portal logs.

public static final MAMCAComplianceStatus UNKNOWN

Status is unknown.

Public Methods

public static MAMCAComplianceStatus fromCode (int code)

Get the enum item that corresponds to the integral code, or null.

Parameters
code Encoded value.
Returns
  • Appropriate item or UNKNOWN in the case the code isn't recognized.

public int getCode ()

Get the encoded version of the enum.

Returns
  • Integral form of the enum.

public static MAMCAComplianceStatus valueOf (String name)

public static final MAMCAComplianceStatus[] values ()