java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | com.microsoft.intune.mam.policy.MAMEnrollmentManager.Result |
Result codes returned directly and through notifications.
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
|
Unable to obtain MAMService token. The application should prompt the user for credentials to obtain a valid refresh token, and then retry the enrollment.
The user is licensed but the company portal is required to be installed on the device for the app to be enrolled.
Enrollment request failed, check logs for details.
Successful enrollment. This result is also returned if the user is already enrolled.
Device is MDM enrolled, can't enroll apps with MAMService. Deprecated - MDM and MAM coexistence is now enabled.
The user is not licensed for the MAMService, or the attempt to contact the location/licensing service failed.
Asynchronous operation has been successfully scheduled. Final result will come via notification.
Unenrollment request failed, check logs for details.
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.
Get the enum item that corresponds to the integral code, or null.
code | Encoded value. |
---|
Get the encoded version of the enum.