Enum MAMCAComplianceStatus

  • All Implemented Interfaces:

    
    public enum MAMCAComplianceStatus
    
                        

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      UNKNOWN

      Status is unknown.

      COMPLIANT

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

      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.

      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.

      NETWORK_FAILURE

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

      CLIENT_ERROR

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

      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.

      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.

    • Method Summary

      Modifier and Type Method Description
      int getCode() Get the encoded version of the enum.
      static MAMCAComplianceStatus fromCode(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 MAMCAComplianceStatus valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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