public static final enum

MAMEnrollmentManager.Result

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

Class Overview

Result codes returned directly and through notifications.

Summary

Enum Values
MAMEnrollmentManager.Result  AUTHORIZATION_NEEDED  Unable to obtain MAMService token. 
MAMEnrollmentManager.Result  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. 
MAMEnrollmentManager.Result  ENROLLMENT_FAILED  Enrollment request failed, check logs for details. 
MAMEnrollmentManager.Result  ENROLLMENT_SUCCEEDED  Successful enrollment. 
MAMEnrollmentManager.Result  MDM_ENROLLED  Device is MDM enrolled, can't enroll apps with MAMService. 
MAMEnrollmentManager.Result  NOT_LICENSED  The user is not licensed for the MAMService, or the attempt to contact the location/licensing service failed. 
MAMEnrollmentManager.Result  PENDING  Asynchronous operation has been successfully scheduled. 
MAMEnrollmentManager.Result  UNENROLLMENT_FAILED  Unenrollment request failed, check logs for details. 
MAMEnrollmentManager.Result  UNENROLLMENT_SUCCEEDED  Successful unenrollment. 
MAMEnrollmentManager.Result  WRONG_USER  Only one user per device can enroll apps. 
Public Methods
static MAMEnrollmentManager.Result 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 MAMEnrollmentManager.Result valueOf(String name)
final static Result[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

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

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

public static final MAMEnrollmentManager.Result ENROLLMENT_FAILED

Enrollment request failed, check logs for details.

public static final MAMEnrollmentManager.Result ENROLLMENT_SUCCEEDED

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

public static final MAMEnrollmentManager.Result MDM_ENROLLED

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

public static final MAMEnrollmentManager.Result NOT_LICENSED

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

public static final MAMEnrollmentManager.Result PENDING

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

public static final MAMEnrollmentManager.Result UNENROLLMENT_FAILED

Unenrollment request failed, check logs for details.

public static final MAMEnrollmentManager.Result UNENROLLMENT_SUCCEEDED

Successful unenrollment.

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

Public Methods

public 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.

public int getCode ()

Get the encoded version of the enum.

Returns
  • Integral form of the enum.

public static MAMEnrollmentManager.Result valueOf (String name)

public static final Result[] values ()