Enum MAMCAComplianceStatus
-
- All Implemented Interfaces:
public enum MAMCAComplianceStatusEnum of possible compliance statuses, returned via notification in an instance of MAMComplianceNotification after a call to remediateCompliance.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UNKNOWNStatus is unknown.
COMPLIANTCompliance remediation succeeded and the app is now compliant with policy. The ADAL token acquisition can now be retried.
NOT_COMPLIANTThe 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.
SERVICE_FAILUREThere was a failure while attempting to retrieve compliance data from the Intune MAM Service. Additional information may be found in the Company Portal logs.
NETWORK_FAILUREThere was an error connecting to the Intune MAM Service. The app should try again when the network connection is restored.
CLIENT_ERRORThe attempt to remediate compliance failed for some reason related to the client. For example, no token or wrong user.
PENDINGThe 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.
COMPANY_PORTAL_REQUIREDThe 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.
-
Method Summary
Modifier and Type Method Description intgetCode()Get the encoded version of the enum. static MAMCAComplianceStatusfromCode(int code)Get the enum item that corresponds to the integral code, or null. static Array<MAMCAComplianceStatus>values()Returns an array containing the constants of this enum type, in the order they're declared. static MAMCAComplianceStatusvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
getCode
int getCode()
Get the encoded version of the enum.
- Returns:
Integral form of the enum.
-
fromCode
@NonNull() 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.
-
values
static Array<MAMCAComplianceStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static MAMCAComplianceStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-