Enum MAMEnrollmentManager.Result

    • 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
      AUTHORIZATION_NEEDED

      Unable to obtain MAMService token. The application should prompt the user for credentials to obtain a valid refresh token, and then retry the enrollment.

      NOT_LICENSED

      The user is not licensed for the MAMService, or the attempt to contact the location/licensing service failed.

      ENROLLMENT_SUCCEEDED

      Successful enrollment. This result is also returned if the user is already enrolled.

      ENROLLMENT_FAILED

      Enrollment request failed, check logs for details.

      WRONG_USER

      Only one user per device can enroll apps. In order to enroll successfully as a different user, all enrolled apps must be unenrolled first. Otherwise, this app must enroll as the primary user. This check happens after the license check, so the user should be blocked from accessing corporate content until the app is re-enrolled as the correct user.

      MDM_ENROLLED

      Device is MDM enrolled, can't enroll apps with MAMService. Deprecated - MDM and MAM coexistence is now enabled.

      UNENROLLMENT_SUCCEEDED

      Successful unenrollment.

      UNENROLLMENT_FAILED

      Unenrollment request failed, check logs for details.

      PENDING

      Asynchronous operation has been successfully scheduled. Final result will come via notification.

      COMPANY_PORTAL_REQUIRED

      The user is licensed but the company portal is required to be installed on the device for the app to be enrolled.

    • Method Summary

      Modifier and Type Method Description
      int getCode() Get the encoded version of the enum.
      static MAMEnrollmentManager.Result fromCode(int code) Get the enum item that corresponds to the integral code, or null.
      static Array<MAMEnrollmentManager.Result> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static MAMEnrollmentManager.Result 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

        @Nullable() static MAMEnrollmentManager.Result fromCode(int code)

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

        Parameters:
        code - Encoded value.
        Returns:

        Appropriate item or null.

      • values

         static Array<MAMEnrollmentManager.Result> 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 MAMEnrollmentManager.Result 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