Enum MAMEnrollmentManager.Result
-
- All Implemented Interfaces:
public enum MAMEnrollmentManager.ResultResult codes returned directly and through notifications.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORIZATION_NEEDEDUnable to obtain MAMService token. The application should prompt the user for credentials to obtain a valid refresh token, and then retry the enrollment.
NOT_LICENSEDThe user is not licensed for the MAMService, or the attempt to contact the location/licensing service failed.
ENROLLMENT_SUCCEEDEDSuccessful enrollment. This result is also returned if the user is already enrolled.
ENROLLMENT_FAILEDEnrollment request failed, check logs for details.
WRONG_USEROnly 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_ENROLLEDDevice is MDM enrolled, can't enroll apps with MAMService. Deprecated - MDM and MAM coexistence is now enabled.
UNENROLLMENT_SUCCEEDEDSuccessful unenrollment.
UNENROLLMENT_FAILEDUnenrollment request failed, check logs for details.
PENDINGAsynchronous operation has been successfully scheduled. Final result will come via notification.
COMPANY_PORTAL_REQUIREDThe 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 intgetCode()Get the encoded version of the enum. static MAMEnrollmentManager.ResultfromCode(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.ResultvalueOf(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
@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
-
-
-
-